
int __regparm3 jsonParseAddNode(JsonParse *pParse,u32 eType,u32 n,char *zContent)

{
  JsonNode *pJVar1;
  u32 uVar2;
  int iVar3;
  u32 in_stack_00000008;
  char *in_stack_0000000c;
  
  if (pParse->nNode < pParse->nAlloc) {
    pJVar1 = pParse->aNode + pParse->nNode;
    pJVar1->eType = (u8)eType;
    pJVar1->jnFlags = '\0';
    pJVar1->n = n;
    (pJVar1->u).zJContent = zContent;
    uVar2 = pParse->nNode;
    pParse->nNode = uVar2 + 1;
    return uVar2;
  }
  iVar3 = jsonParseAddNodeExpand(pParse,(u32)zContent,in_stack_00000008,in_stack_0000000c);
  return iVar3;
}



void __regparm3 FUN_0009dce0(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined1 *puVar1;
  
  if (*param_1 < param_1[1]) {
    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);
    *puVar1 = param_2;
    puVar1[1] = 0;
    *(undefined4 *)(puVar1 + 4) = param_3;
    *(undefined4 *)(puVar1 + 8) = param_4;
    *param_1 = *param_1 + 1;
    return;
  }
  FUN_0009dc10();
  return;
}


PUSH EDI
PUSH ESI
PUSH EBX
MOV EBX,EAX
MOV ESI,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [EAX]
CMP EAX,dword ptr [EBX + 0x4]
JNC 0x0009dd10
LEA EDI,[EAX + EAX*0x2]
MOV EAX,dword ptr [EBX + 0x8]
LEA EAX,[EAX + EDI*0x4]
MOV byte ptr [EAX],DL
MOV byte ptr [EAX + 0x1],0x0
MOV dword ptr [EAX + 0x4],ECX
MOV dword ptr [EAX + 0x8],ESI
MOV EAX,dword ptr [EBX]
LEA EDX,[EAX + 0x1]
MOV dword ptr [EBX],EDX
POP EBX
POP ESI
POP EDI
RET
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
JMP 0x0009dc10
(translation_unit "void __regparm3 FUN_0009dce0(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 *puVar1;\n  \n  if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }\n  FUN_0009dc10();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0009dce0(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 *puVar1;\n  \n  if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }\n  FUN_0009dc10();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0009dce0(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  \n  if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }\n  FUN_0009dc10();\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }" if (parenthesized_expression "(*param_1 < param_1[1])" ( (binary_expression "*param_1 < param_1[1]" (pointer_expression "*param_1" * identifier) < (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }" { (expression_statement "puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);" (assignment_expression "puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc)" identifier = (cast_expression "(undefined1 *)(param_1[2] + *param_1 * 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + *param_1 * 0xc)" ( (binary_expression "param_1[2] + *param_1 * 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "*param_1 * 0xc" (pointer_expression "*param_1" * identifier) * number_literal)) )))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar1 + 4) = param_3;" (assignment_expression "*(undefined4 *)(puVar1 + 4) = param_3" (pointer_expression "*(undefined4 *)(puVar1 + 4)" * (cast_expression "(undefined4 *)(puVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar1 + 8) = param_4;" (assignment_expression "*(undefined4 *)(puVar1 + 8) = param_4" (pointer_expression "*(undefined4 *)(puVar1 + 8)" * (cast_expression "(undefined4 *)(puVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 8)" ( (binary_expression "puVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_1 = *param_1 + 1;" (assignment_expression "*param_1 = *param_1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0009dc10();" (call_expression "FUN_0009dc10()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "int __regparm3 jsonParseAddNode(JsonParse *pParse,u32 eType,u32 n,char *zContent)\n\n{\n  JsonNode *pJVar1;\n  u32 uVar2;\n  int iVar3;\n  u32 in_stack_00000008;\n  char *in_stack_0000000c;\n  \n  if (pParse->nNode < pParse->nAlloc) {\n    pJVar1 = pParse->aNode + pParse->nNode;\n    pJVar1->eType = (u8)eType;\n    pJVar1->jnFlags = '\0';\n    pJVar1->n = n;\n    (pJVar1->u).zJContent = zContent;\n    uVar2 = pParse->nNode;\n    pParse->nNode = uVar2 + 1;\n    return uVar2;\n  }\n  iVar3 = jsonParseAddNodeExpand(pParse,(u32)zContent,in_stack_00000008,in_stack_0000000c);\n  return iVar3;\n}\n\n" (function_definition "int __regparm3 jsonParseAddNode(JsonParse *pParse,u32 eType,u32 n,char *zContent)\n\n{\n  JsonNode *pJVar1;\n  u32 uVar2;\n  int iVar3;\n  u32 in_stack_00000008;\n  char *in_stack_0000000c;\n  \n  if (pParse->nNode < pParse->nAlloc) {\n    pJVar1 = pParse->aNode + pParse->nNode;\n    pJVar1->eType = (u8)eType;\n    pJVar1->jnFlags = '\0';\n    pJVar1->n = n;\n    (pJVar1->u).zJContent = zContent;\n    uVar2 = pParse->nNode;\n    pParse->nNode = uVar2 + 1;\n    return uVar2;\n  }\n  iVar3 = jsonParseAddNodeExpand(pParse,(u32)zContent,in_stack_00000008,in_stack_0000000c);\n  return iVar3;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "jsonParseAddNode(JsonParse *pParse,u32 eType,u32 n,char *zContent)" identifier (parameter_list "(JsonParse *pParse,u32 eType,u32 n,char *zContent)" ( (parameter_declaration "JsonParse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "u32 eType" type_identifier identifier) , (parameter_declaration "u32 n" type_identifier identifier) , (parameter_declaration "char *zContent" primitive_type (pointer_declarator "*zContent" * identifier)) ))) (compound_statement "{\n  JsonNode *pJVar1;\n  u32 uVar2;\n  int iVar3;\n  u32 in_stack_00000008;\n  char *in_stack_0000000c;\n  \n  if (pParse->nNode < pParse->nAlloc) {\n    pJVar1 = pParse->aNode + pParse->nNode;\n    pJVar1->eType = (u8)eType;\n    pJVar1->jnFlags = '\0';\n    pJVar1->n = n;\n    (pJVar1->u).zJContent = zContent;\n    uVar2 = pParse->nNode;\n    pParse->nNode = uVar2 + 1;\n    return uVar2;\n  }\n  iVar3 = jsonParseAddNodeExpand(pParse,(u32)zContent,in_stack_00000008,in_stack_0000000c);\n  return iVar3;\n}" { (declaration "JsonNode *pJVar1;" type_identifier (pointer_declarator "*pJVar1" * identifier) ;) (declaration "u32 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "u32 in_stack_00000008;" type_identifier identifier ;) (declaration "char *in_stack_0000000c;" primitive_type (pointer_declarator "*in_stack_0000000c" * identifier) ;) (if_statement "if (pParse->nNode < pParse->nAlloc) {\n    pJVar1 = pParse->aNode + pParse->nNode;\n    pJVar1->eType = (u8)eType;\n    pJVar1->jnFlags = '\0';\n    pJVar1->n = n;\n    (pJVar1->u).zJContent = zContent;\n    uVar2 = pParse->nNode;\n    pParse->nNode = uVar2 + 1;\n    return uVar2;\n  }" if (parenthesized_expression "(pParse->nNode < pParse->nAlloc)" ( (binary_expression "pParse->nNode < pParse->nAlloc" (field_expression "pParse->nNode" identifier -> field_identifier) < (field_expression "pParse->nAlloc" identifier -> field_identifier)) )) (compound_statement "{\n    pJVar1 = pParse->aNode + pParse->nNode;\n    pJVar1->eType = (u8)eType;\n    pJVar1->jnFlags = '\0';\n    pJVar1->n = n;\n    (pJVar1->u).zJContent = zContent;\n    uVar2 = pParse->nNode;\n    pParse->nNode = uVar2 + 1;\n    return uVar2;\n  }" { (expression_statement "pJVar1 = pParse->aNode + pParse->nNode;" (assignment_expression "pJVar1 = pParse->aNode + pParse->nNode" identifier = (binary_expression "pParse->aNode + pParse->nNode" (field_expression "pParse->aNode" identifier -> field_identifier) + (field_expression "pParse->nNode" identifier -> field_identifier))) ;) (expression_statement "pJVar1->eType = (u8)eType;" (assignment_expression "pJVar1->eType = (u8)eType" (field_expression "pJVar1->eType" identifier -> field_identifier) = (cast_expression "(u8)eType" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "pJVar1->jnFlags = '\0';" (assignment_expression "pJVar1->jnFlags = '\0'" (field_expression "pJVar1->jnFlags" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pJVar1->n = n;" (assignment_expression "pJVar1->n = n" (field_expression "pJVar1->n" identifier -> field_identifier) = identifier) ;) (expression_statement "(pJVar1->u).zJContent = zContent;" (assignment_expression "(pJVar1->u).zJContent = zContent" (field_expression "(pJVar1->u).zJContent" (parenthesized_expression "(pJVar1->u)" ( (field_expression "pJVar1->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "uVar2 = pParse->nNode;" (assignment_expression "uVar2 = pParse->nNode" identifier = (field_expression "pParse->nNode" identifier -> field_identifier)) ;) (expression_statement "pParse->nNode = uVar2 + 1;" (assignment_expression "pParse->nNode = uVar2 + 1" (field_expression "pParse->nNode" identifier -> field_identifier) = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (return_statement "return uVar2;" return identifier ;) })) (expression_statement "iVar3 = jsonParseAddNodeExpand(pParse,(u32)zContent,in_stack_00000008,in_stack_0000000c);" (assignment_expression "iVar3 = jsonParseAddNodeExpand(pParse,(u32)zContent,in_stack_00000008,in_stack_0000000c)" identifier = (call_expression "jsonParseAddNodeExpand(pParse,(u32)zContent,in_stack_00000008,in_stack_0000000c)" identifier (argument_list "(pParse,(u32)zContent,in_stack_00000008,in_stack_0000000c)" ( identifier , (cast_expression "(u32)zContent" ( (type_descriptor "u32" type_identifier) ) identifier) , identifier , identifier )))) ;) (return_statement "return iVar3;" return identifier ;) })))
(translation_unit "void __regparm3 FUN_0009dce0(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 *puVar1;\n  \n  if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }\n  FUN_0009dc10();\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0009dce0(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 *puVar1;\n  \n  if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }\n  FUN_0009dc10();\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0009dce0(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined1 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined1 *puVar1;\n  \n  if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }\n  FUN_0009dc10();\n  return;\n}" { (declaration "undefined1 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }" if (parenthesized_expression "(*param_1 < param_1[1])" ( (binary_expression "*param_1 < param_1[1]" (pointer_expression "*param_1" * identifier) < (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }" { (expression_statement "puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);" (assignment_expression "puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc)" identifier = (cast_expression "(undefined1 *)(param_1[2] + *param_1 * 0xc)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[2] + *param_1 * 0xc)" ( (binary_expression "param_1[2] + *param_1 * 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) + (binary_expression "*param_1 * 0xc" (pointer_expression "*param_1" * identifier) * number_literal)) )))) ;) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined4 *)(puVar1 + 4) = param_3;" (assignment_expression "*(undefined4 *)(puVar1 + 4) = param_3" (pointer_expression "*(undefined4 *)(puVar1 + 4)" * (cast_expression "(undefined4 *)(puVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(puVar1 + 8) = param_4;" (assignment_expression "*(undefined4 *)(puVar1 + 8) = param_4" (pointer_expression "*(undefined4 *)(puVar1 + 8)" * (cast_expression "(undefined4 *)(puVar1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 8)" ( (binary_expression "puVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*param_1 = *param_1 + 1;" (assignment_expression "*param_1 = *param_1 + 1" (pointer_expression "*param_1" * identifier) = (binary_expression "*param_1 + 1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_0009dc10();" (call_expression "FUN_0009dc10()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (binary_expression (pointer_expression * IDENT) * LIT)) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0009dce0(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined1 *puVar1;\n  \n  if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }\n  FUN_0009dc10();\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0009dce0(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0009dce0") (parameter_list "(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined1 param_2" (type_identifier "undefined1") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined1 *puVar1;\n  \n  if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }\n  FUN_0009dc10();\n  return;\n}" ({ "{") (declaration "undefined1 *puVar1;" (type_identifier "undefined1") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (if_statement "if (*param_1 < param_1[1]) {\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }" (if "if") (parenthesized_expression "(*param_1 < param_1[1])" (( "(") (binary_expression "*param_1 < param_1[1]" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);\n    *puVar1 = param_2;\n    puVar1[1] = 0;\n    *(undefined4 *)(puVar1 + 4) = param_3;\n    *(undefined4 *)(puVar1 + 8) = param_4;\n    *param_1 = *param_1 + 1;\n    return;\n  }" ({ "{") (expression_statement "puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);" (assignment_expression "puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc)" (identifier "puVar1") (= "=") (cast_expression "(undefined1 *)(param_1[2] + *param_1 * 0xc)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[2] + *param_1 * 0xc)" (( "(") (binary_expression "param_1[2] + *param_1 * 0xc" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (binary_expression "*param_1 * 0xc" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (* "*") (number_literal "0xc"))) () ")")))) (; ";")) (expression_statement "*puVar1 = param_2;" (assignment_expression "*puVar1 = param_2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 4) = param_3;" (assignment_expression "*(undefined4 *)(puVar1 + 4) = param_3" (pointer_expression "*(undefined4 *)(puVar1 + 4)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 4)" (( "(") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(puVar1 + 8) = param_4;" (assignment_expression "*(undefined4 *)(puVar1 + 8) = param_4" (pointer_expression "*(undefined4 *)(puVar1 + 8)" (* "*") (cast_expression "(undefined4 *)(puVar1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 8)" (( "(") (binary_expression "puVar1 + 8" (identifier "puVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*param_1 = *param_1 + 1;" (assignment_expression "*param_1 = *param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (binary_expression "*param_1 + 1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_0009dc10();" (call_expression "FUN_0009dc10()" (identifier "FUN_0009dc10") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pParse,type_2 eType,type_2 n,char *zContent)

{
  type_3 *pJVar1;
  type_2 var_1;
  int iVar3;
  type_2 in_stack_00000008;
  char *in_stack_0000000c;
  
  if (pParse->nNode < pParse->nAlloc) {
    pJVar1 = pParse->aNode + pParse->nNode;
    pJVar1->eType = (type_4)eType;
    pJVar1->jnFlags = '\0';
    pJVar1->n = n;
    (pJVar1->u).zJContent = zContent;
    var_1 = pParse->nNode;
    pParse->nNode = var_1 + 1;
    return var_1;
  }
  iVar3 = var_2(pParse,(type_2)zContent,in_stack_00000008,in_stack_0000000c);
  return iVar3;
}


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

void __regparm3 MASKED(uint *param_1,undefined1 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined1 *puVar1;
  
  if (*param_1 < param_1[1]) {
    puVar1 = (undefined1 *)(param_1[2] + *param_1 * 0xc);
    *puVar1 = param_2;
    puVar1[1] = 0;
    *(undefined4 *)(puVar1 + 4) = param_3;
    *(undefined4 *)(puVar1 + 8) = param_4;
    *param_1 = *param_1 + 1;
    return;
  }
  FUN_0009dc10();
  return;
}

