
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Idx pop_fail_stack(re_fail_stack_t * fs, Idx * pidx, Idx nregs,
   regmatch_t * regs, re_node_set * eps_via_nodes, re_fail_stack_t * fs) */

Idx __regparm3
pop_fail_stack(re_fail_stack_t *fs,Idx *pidx,Idx nregs,regmatch_t *regs,re_node_set *eps_via_nodes,
              re_fail_stack_t *fs_1)

{
  void *__src;
  Idx IVar1;
  int iVar2;
  
  iVar2 = fs->num + -1;
  fs->num = iVar2;
  if (-1 < iVar2) {
    iVar2 = iVar2 * 0x18;
    __src = (void *)((undefined4 *)(*pidx + iVar2))[2];
    *(undefined4 *)nregs = *(undefined4 *)(*pidx + iVar2);
    memcpy(eps_via_nodes,__src,(int)regs << 3);
    free(fs_1->stack);
    free(*(void **)(*pidx + 8 + iVar2));
    iVar2 = *pidx + iVar2;
    fs_1->num = *(Idx *)(iVar2 + 0xc);
    fs_1->alloc = *(Idx *)(iVar2 + 0x10);
    IVar1 = *(Idx *)(iVar2 + 4);
    fs_1->stack = *(re_fail_stack_ent_t **)(iVar2 + 0x14);
    return IVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3
FUN_0001ced0(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,
            undefined4 *param_6)

{
  void *__src;
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = *param_1 + -1;
  *param_1 = iVar2;
  if (-1 < iVar2) {
    iVar2 = iVar2 * 0x18;
    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];
    *param_3 = *(undefined4 *)(*param_2 + iVar2);
    memcpy(param_5,__src,param_4 << 3);
    free((void *)param_6[2]);
    free(*(void **)(*param_2 + 8 + iVar2));
    iVar2 = *param_2 + iVar2;
    *param_6 = *(undefined4 *)(iVar2 + 0xc);
    param_6[1] = *(undefined4 *)(iVar2 + 0x10);
    uVar1 = *(undefined4 *)(iVar2 + 4);
    param_6[2] = *(undefined4 *)(iVar2 + 0x14);
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");
}


PUSH EBP
MOV EBP,EDX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000116e0
ADD EBX,0x12125
SUB ESP,0xc
MOV ESI,dword ptr [EAX]
MOV EDI,dword ptr [ESP + 0x28]
LEA EDX,[ESI + -0x1]
MOV dword ptr [EAX],EDX
TEST EDX,EDX
JS 0x0001cf55
LEA EAX,[EDX + EDX*0x2]
MOV EDX,dword ptr [EBP]
SUB ESP,0x4
LEA ESI,[EAX*0x8 + 0x0]
ADD EDX,ESI
MOV EAX,dword ptr [EDX]
MOV EDX,dword ptr [EDX + 0x8]
MOV dword ptr [ECX],EAX
MOV EAX,dword ptr [ESP + 0x24]
SHL EAX,0x3
PUSH EAX
PUSH EDX
PUSH dword ptr [ESP + 0x30]
CALL 0x000110e0
POP EAX
PUSH dword ptr [EDI + 0x8]
CALL 0x000110c0
MOV EAX,dword ptr [EBP]
POP EDX
PUSH dword ptr [EAX + ESI*0x1 + 0x8]
CALL 0x000110c0
MOV EAX,dword ptr [EBP]
ADD EAX,ESI
MOV EDX,dword ptr [EAX + 0xc]
MOV dword ptr [EDI],EDX
MOV EDX,dword ptr [EAX + 0x10]
MOV dword ptr [EDI + 0x4],EDX
MOV EDX,dword ptr [EAX + 0x14]
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [EDI + 0x8],EDX
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffff8d80]
PUSH EAX
LEA EAX,[EBX + 0xffff881f]
PUSH 0x54f
PUSH EAX
LEA EAX,[EBX + 0xffff882d]
PUSH EAX
CALL 0x00011450
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_0001ced0(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)\n\n{\n  void *__src;\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1 + -1;\n  *param_1 = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_0001ced0(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)\n\n{\n  void *__src;\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1 + -1;\n  *param_1 = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001ced0(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "void *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  void *__src;\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1 + -1;\n  *param_1 = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}" { (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *param_1 + -1;" (assignment_expression "iVar2 = *param_1 + -1" identifier = (binary_expression "*param_1 + -1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }" { (expression_statement "iVar2 = iVar2 * 0x18;" (assignment_expression "iVar2 = iVar2 * 0x18" identifier = (binary_expression "iVar2 * 0x18" identifier * number_literal)) ;) (expression_statement "__src = (void *)((undefined4 *)(*param_2 + iVar2))[2];" (assignment_expression "__src = (void *)((undefined4 *)(*param_2 + iVar2))[2]" identifier = (cast_expression "(void *)((undefined4 *)(*param_2 + iVar2))[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "((undefined4 *)(*param_2 + iVar2))[2]" (parenthesized_expression "((undefined4 *)(*param_2 + iVar2))" ( (cast_expression "(undefined4 *)(*param_2 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar2)" ( (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier) ))) )) [ number_literal ]))) ;) (expression_statement "*param_3 = *(undefined4 *)(*param_2 + iVar2);" (assignment_expression "*param_3 = *(undefined4 *)(*param_2 + iVar2)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(*param_2 + iVar2)" * (cast_expression "(undefined4 *)(*param_2 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar2)" ( (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier) ))))) ;) (expression_statement "memcpy(param_5,__src,param_4 << 3);" (call_expression "memcpy(param_5,__src,param_4 << 3)" identifier (argument_list "(param_5,__src,param_4 << 3)" ( identifier , identifier , (binary_expression "param_4 << 3" identifier << number_literal) ))) ;) (expression_statement "free((void *)param_6[2]);" (call_expression "free((void *)param_6[2])" identifier (argument_list "((void *)param_6[2])" ( (cast_expression "(void *)param_6[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_6[2]" identifier [ number_literal ])) ))) ;) (expression_statement "free(*(void **)(*param_2 + 8 + iVar2));" (call_expression "free(*(void **)(*param_2 + 8 + iVar2))" identifier (argument_list "(*(void **)(*param_2 + 8 + iVar2))" ( (pointer_expression "*(void **)(*param_2 + 8 + iVar2)" * (cast_expression "(void **)(*param_2 + 8 + iVar2)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8 + iVar2)" ( (binary_expression "*param_2 + 8 + iVar2" (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) + identifier) )))) ))) ;) (expression_statement "iVar2 = *param_2 + iVar2;" (assignment_expression "iVar2 = *param_2 + iVar2" identifier = (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier)) ;) (expression_statement "*param_6 = *(undefined4 *)(iVar2 + 0xc);" (assignment_expression "*param_6 = *(undefined4 *)(iVar2 + 0xc)" (pointer_expression "*param_6" * identifier) = (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "param_6[1] = *(undefined4 *)(iVar2 + 0x10);" (assignment_expression "param_6[1] = *(undefined4 *)(iVar2 + 0x10)" (subscript_expression "param_6[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "param_6[2] = *(undefined4 *)(iVar2 + 0x14);" (assignment_expression "param_6[2] = *(undefined4 *)(iVar2 + 0x14)" (subscript_expression "param_6[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" * (cast_expression "(undefined4 *)(iVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (return_statement "return uVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");" (call_expression "__assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack")" identifier (argument_list "("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack")" ( (string_literal ""num >= 0"" " string_content ") , (string_literal ""lib/regexec.c"" " string_content ") , number_literal , (string_literal ""pop_fail_stack"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: Idx pop_fail_stack(re_fail_stack_t * fs, Idx * pidx, Idx nregs,\n   regmatch_t * regs, re_node_set * eps_via_nodes, re_fail_stack_t * fs) */\n\nIdx __regparm3\npop_fail_stack(re_fail_stack_t *fs,Idx *pidx,Idx nregs,regmatch_t *regs,re_node_set *eps_via_nodes,\n              re_fail_stack_t *fs_1)\n\n{\n  void *__src;\n  Idx IVar1;\n  int iVar2;\n  \n  iVar2 = fs->num + -1;\n  fs->num = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*pidx + iVar2))[2];\n    *(undefined4 *)nregs = *(undefined4 *)(*pidx + iVar2);\n    memcpy(eps_via_nodes,__src,(int)regs << 3);\n    free(fs_1->stack);\n    free(*(void **)(*pidx + 8 + iVar2));\n    iVar2 = *pidx + iVar2;\n    fs_1->num = *(Idx *)(iVar2 + 0xc);\n    fs_1->alloc = *(Idx *)(iVar2 + 0x10);\n    IVar1 = *(Idx *)(iVar2 + 4);\n    fs_1->stack = *(re_fail_stack_ent_t **)(iVar2 + 0x14);\n    return IVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}\n\n" comment comment (function_definition "Idx __regparm3\npop_fail_stack(re_fail_stack_t *fs,Idx *pidx,Idx nregs,regmatch_t *regs,re_node_set *eps_via_nodes,\n              re_fail_stack_t *fs_1)\n\n{\n  void *__src;\n  Idx IVar1;\n  int iVar2;\n  \n  iVar2 = fs->num + -1;\n  fs->num = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*pidx + iVar2))[2];\n    *(undefined4 *)nregs = *(undefined4 *)(*pidx + iVar2);\n    memcpy(eps_via_nodes,__src,(int)regs << 3);\n    free(fs_1->stack);\n    free(*(void **)(*pidx + 8 + iVar2));\n    iVar2 = *pidx + iVar2;\n    fs_1->num = *(Idx *)(iVar2 + 0xc);\n    fs_1->alloc = *(Idx *)(iVar2 + 0x10);\n    IVar1 = *(Idx *)(iVar2 + 4);\n    fs_1->stack = *(re_fail_stack_ent_t **)(iVar2 + 0x14);\n    return IVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "pop_fail_stack(re_fail_stack_t *fs,Idx *pidx,Idx nregs,regmatch_t *regs,re_node_set *eps_via_nodes,\n              re_fail_stack_t *fs_1)" identifier (parameter_list "(re_fail_stack_t *fs,Idx *pidx,Idx nregs,regmatch_t *regs,re_node_set *eps_via_nodes,\n              re_fail_stack_t *fs_1)" ( (parameter_declaration "re_fail_stack_t *fs" type_identifier (pointer_declarator "*fs" * identifier)) , (parameter_declaration "Idx *pidx" type_identifier (pointer_declarator "*pidx" * identifier)) , (parameter_declaration "Idx nregs" type_identifier identifier) , (parameter_declaration "regmatch_t *regs" type_identifier (pointer_declarator "*regs" * identifier)) , (parameter_declaration "re_node_set *eps_via_nodes" type_identifier (pointer_declarator "*eps_via_nodes" * identifier)) , (parameter_declaration "re_fail_stack_t *fs_1" type_identifier (pointer_declarator "*fs_1" * identifier)) ))) (compound_statement "{\n  void *__src;\n  Idx IVar1;\n  int iVar2;\n  \n  iVar2 = fs->num + -1;\n  fs->num = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*pidx + iVar2))[2];\n    *(undefined4 *)nregs = *(undefined4 *)(*pidx + iVar2);\n    memcpy(eps_via_nodes,__src,(int)regs << 3);\n    free(fs_1->stack);\n    free(*(void **)(*pidx + 8 + iVar2));\n    iVar2 = *pidx + iVar2;\n    fs_1->num = *(Idx *)(iVar2 + 0xc);\n    fs_1->alloc = *(Idx *)(iVar2 + 0x10);\n    IVar1 = *(Idx *)(iVar2 + 4);\n    fs_1->stack = *(re_fail_stack_ent_t **)(iVar2 + 0x14);\n    return IVar1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}" { (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "Idx IVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = fs->num + -1;" (assignment_expression "iVar2 = fs->num + -1" identifier = (binary_expression "fs->num + -1" (field_expression "fs->num" identifier -> field_identifier) + number_literal)) ;) (expression_statement "fs->num = iVar2;" (assignment_expression "fs->num = iVar2" (field_expression "fs->num" identifier -> field_identifier) = identifier) ;) (if_statement "if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*pidx + iVar2))[2];\n    *(undefined4 *)nregs = *(undefined4 *)(*pidx + iVar2);\n    memcpy(eps_via_nodes,__src,(int)regs << 3);\n    free(fs_1->stack);\n    free(*(void **)(*pidx + 8 + iVar2));\n    iVar2 = *pidx + iVar2;\n    fs_1->num = *(Idx *)(iVar2 + 0xc);\n    fs_1->alloc = *(Idx *)(iVar2 + 0x10);\n    IVar1 = *(Idx *)(iVar2 + 4);\n    fs_1->stack = *(re_fail_stack_ent_t **)(iVar2 + 0x14);\n    return IVar1;\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*pidx + iVar2))[2];\n    *(undefined4 *)nregs = *(undefined4 *)(*pidx + iVar2);\n    memcpy(eps_via_nodes,__src,(int)regs << 3);\n    free(fs_1->stack);\n    free(*(void **)(*pidx + 8 + iVar2));\n    iVar2 = *pidx + iVar2;\n    fs_1->num = *(Idx *)(iVar2 + 0xc);\n    fs_1->alloc = *(Idx *)(iVar2 + 0x10);\n    IVar1 = *(Idx *)(iVar2 + 4);\n    fs_1->stack = *(re_fail_stack_ent_t **)(iVar2 + 0x14);\n    return IVar1;\n  }" { (expression_statement "iVar2 = iVar2 * 0x18;" (assignment_expression "iVar2 = iVar2 * 0x18" identifier = (binary_expression "iVar2 * 0x18" identifier * number_literal)) ;) (expression_statement "__src = (void *)((undefined4 *)(*pidx + iVar2))[2];" (assignment_expression "__src = (void *)((undefined4 *)(*pidx + iVar2))[2]" identifier = (cast_expression "(void *)((undefined4 *)(*pidx + iVar2))[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "((undefined4 *)(*pidx + iVar2))[2]" (parenthesized_expression "((undefined4 *)(*pidx + iVar2))" ( (cast_expression "(undefined4 *)(*pidx + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*pidx + iVar2)" ( (binary_expression "*pidx + iVar2" (pointer_expression "*pidx" * identifier) + identifier) ))) )) [ number_literal ]))) ;) (expression_statement "*(undefined4 *)nregs = *(undefined4 *)(*pidx + iVar2);" (assignment_expression "*(undefined4 *)nregs = *(undefined4 *)(*pidx + iVar2)" (pointer_expression "*(undefined4 *)nregs" * (cast_expression "(undefined4 *)nregs" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined4 *)(*pidx + iVar2)" * (cast_expression "(undefined4 *)(*pidx + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*pidx + iVar2)" ( (binary_expression "*pidx + iVar2" (pointer_expression "*pidx" * identifier) + identifier) ))))) ;) (expression_statement "memcpy(eps_via_nodes,__src,(int)regs << 3);" (call_expression "memcpy(eps_via_nodes,__src,(int)regs << 3)" identifier (argument_list "(eps_via_nodes,__src,(int)regs << 3)" ( identifier , identifier , (binary_expression "(int)regs << 3" (cast_expression "(int)regs" ( (type_descriptor "int" primitive_type) ) identifier) << number_literal) ))) ;) (expression_statement "free(fs_1->stack);" (call_expression "free(fs_1->stack)" identifier (argument_list "(fs_1->stack)" ( (field_expression "fs_1->stack" identifier -> field_identifier) ))) ;) (expression_statement "free(*(void **)(*pidx + 8 + iVar2));" (call_expression "free(*(void **)(*pidx + 8 + iVar2))" identifier (argument_list "(*(void **)(*pidx + 8 + iVar2))" ( (pointer_expression "*(void **)(*pidx + 8 + iVar2)" * (cast_expression "(void **)(*pidx + 8 + iVar2)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*pidx + 8 + iVar2)" ( (binary_expression "*pidx + 8 + iVar2" (binary_expression "*pidx + 8" (pointer_expression "*pidx" * identifier) + number_literal) + identifier) )))) ))) ;) (expression_statement "iVar2 = *pidx + iVar2;" (assignment_expression "iVar2 = *pidx + iVar2" identifier = (binary_expression "*pidx + iVar2" (pointer_expression "*pidx" * identifier) + identifier)) ;) (expression_statement "fs_1->num = *(Idx *)(iVar2 + 0xc);" (assignment_expression "fs_1->num = *(Idx *)(iVar2 + 0xc)" (field_expression "fs_1->num" identifier -> field_identifier) = (pointer_expression "*(Idx *)(iVar2 + 0xc)" * (cast_expression "(Idx *)(iVar2 + 0xc)" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "fs_1->alloc = *(Idx *)(iVar2 + 0x10);" (assignment_expression "fs_1->alloc = *(Idx *)(iVar2 + 0x10)" (field_expression "fs_1->alloc" identifier -> field_identifier) = (pointer_expression "*(Idx *)(iVar2 + 0x10)" * (cast_expression "(Idx *)(iVar2 + 0x10)" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "IVar1 = *(Idx *)(iVar2 + 4);" (assignment_expression "IVar1 = *(Idx *)(iVar2 + 4)" identifier = (pointer_expression "*(Idx *)(iVar2 + 4)" * (cast_expression "(Idx *)(iVar2 + 4)" ( (type_descriptor "Idx *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "fs_1->stack = *(re_fail_stack_ent_t **)(iVar2 + 0x14);" (assignment_expression "fs_1->stack = *(re_fail_stack_ent_t **)(iVar2 + 0x14)" (field_expression "fs_1->stack" identifier -> field_identifier) = (pointer_expression "*(re_fail_stack_ent_t **)(iVar2 + 0x14)" * (cast_expression "(re_fail_stack_ent_t **)(iVar2 + 0x14)" ( (type_descriptor "re_fail_stack_ent_t **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (return_statement "return IVar1;" return identifier ;) })) comment (expression_statement "__assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");" (call_expression "__assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack")" identifier (argument_list "("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack")" ( (string_literal ""num >= 0"" " string_content ") , (string_literal ""lib/regexec.c"" " string_content ") , number_literal , (string_literal ""pop_fail_stack"" " string_content ") ))) ;) })))
(translation_unit "undefined4 __regparm3\nFUN_0001ced0(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)\n\n{\n  void *__src;\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1 + -1;\n  *param_1 = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }\n                    \n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_0001ced0(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)\n\n{\n  void *__src;\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1 + -1;\n  *param_1 = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }\n                    \n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0001ced0(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)" identifier (parameter_list "(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "void *param_5" primitive_type (pointer_declarator "*param_5" * identifier)) , (parameter_declaration "undefined4 *param_6" type_identifier (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  void *__src;\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1 + -1;\n  *param_1 = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }\n                    \n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}" { (declaration "void *__src;" primitive_type (pointer_declarator "*__src" * identifier) ;) (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *param_1 + -1;" (assignment_expression "iVar2 = *param_1 + -1" identifier = (binary_expression "*param_1 + -1" (pointer_expression "*param_1" * identifier) + number_literal)) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) (if_statement "if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }" if (parenthesized_expression "(-1 < iVar2)" ( (binary_expression "-1 < iVar2" number_literal < identifier) )) (compound_statement "{\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }" { (expression_statement "iVar2 = iVar2 * 0x18;" (assignment_expression "iVar2 = iVar2 * 0x18" identifier = (binary_expression "iVar2 * 0x18" identifier * number_literal)) ;) (expression_statement "__src = (void *)((undefined4 *)(*param_2 + iVar2))[2];" (assignment_expression "__src = (void *)((undefined4 *)(*param_2 + iVar2))[2]" identifier = (cast_expression "(void *)((undefined4 *)(*param_2 + iVar2))[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "((undefined4 *)(*param_2 + iVar2))[2]" (parenthesized_expression "((undefined4 *)(*param_2 + iVar2))" ( (cast_expression "(undefined4 *)(*param_2 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar2)" ( (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier) ))) )) [ number_literal ]))) ;) (expression_statement "*param_3 = *(undefined4 *)(*param_2 + iVar2);" (assignment_expression "*param_3 = *(undefined4 *)(*param_2 + iVar2)" (pointer_expression "*param_3" * identifier) = (pointer_expression "*(undefined4 *)(*param_2 + iVar2)" * (cast_expression "(undefined4 *)(*param_2 + iVar2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_2 + iVar2)" ( (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier) ))))) ;) (expression_statement "memcpy(param_5,__src,param_4 << 3);" (call_expression "memcpy(param_5,__src,param_4 << 3)" identifier (argument_list "(param_5,__src,param_4 << 3)" ( identifier , identifier , (binary_expression "param_4 << 3" identifier << number_literal) ))) ;) (expression_statement "free((void *)param_6[2]);" (call_expression "free((void *)param_6[2])" identifier (argument_list "((void *)param_6[2])" ( (cast_expression "(void *)param_6[2]" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_6[2]" identifier [ number_literal ])) ))) ;) (expression_statement "free(*(void **)(*param_2 + 8 + iVar2));" (call_expression "free(*(void **)(*param_2 + 8 + iVar2))" identifier (argument_list "(*(void **)(*param_2 + 8 + iVar2))" ( (pointer_expression "*(void **)(*param_2 + 8 + iVar2)" * (cast_expression "(void **)(*param_2 + 8 + iVar2)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_2 + 8 + iVar2)" ( (binary_expression "*param_2 + 8 + iVar2" (binary_expression "*param_2 + 8" (pointer_expression "*param_2" * identifier) + number_literal) + identifier) )))) ))) ;) (expression_statement "iVar2 = *param_2 + iVar2;" (assignment_expression "iVar2 = *param_2 + iVar2" identifier = (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" * identifier) + identifier)) ;) (expression_statement "*param_6 = *(undefined4 *)(iVar2 + 0xc);" (assignment_expression "*param_6 = *(undefined4 *)(iVar2 + 0xc)" (pointer_expression "*param_6" * identifier) = (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" * (cast_expression "(undefined4 *)(iVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0xc)" ( (binary_expression "iVar2 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "param_6[1] = *(undefined4 *)(iVar2 + 0x10);" (assignment_expression "param_6[1] = *(undefined4 *)(iVar2 + 0x10)" (subscript_expression "param_6[1]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 4)" identifier = (pointer_expression "*(undefined4 *)(iVar2 + 4)" * (cast_expression "(undefined4 *)(iVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) ;) (expression_statement "param_6[2] = *(undefined4 *)(iVar2 + 0x14);" (assignment_expression "param_6[2] = *(undefined4 *)(iVar2 + 0x14)" (subscript_expression "param_6[2]" identifier [ number_literal ]) = (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" * (cast_expression "(undefined4 *)(iVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x14)" ( (binary_expression "iVar2 + 0x14" identifier + number_literal) ))))) ;) (return_statement "return uVar1;" return identifier ;) })) (expression_statement "__assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");" (call_expression "__assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack")" identifier (argument_list "("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack")" ( (string_literal ""num >= 0"" " string_content ") , (string_literal ""lib/regexec.c"" " string_content ") , number_literal , (string_literal ""pop_fail_stack"" " string_content ") ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression (parenthesized_expression ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) ))) )) [ LIT ]))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + IDENT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression IDENT << LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ])) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * IDENT) + LIT) + IDENT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4 __regparm3\nFUN_0001ced0(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)\n\n{\n  void *__src;\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1 + -1;\n  *param_1 = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }\n                    \n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001ced0(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)" (identifier "FUN_0001ced0") (parameter_list "(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,\n            undefined4 *param_6)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "void *param_5" (primitive_type "void") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) (, ",") (parameter_declaration "undefined4 *param_6" (type_identifier "undefined4") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  void *__src;\n  undefined4 uVar1;\n  int iVar2;\n  \n  iVar2 = *param_1 + -1;\n  *param_1 = iVar2;\n  if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }\n                    \n  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");\n}" ({ "{") (declaration "void *__src;" (primitive_type "void") (pointer_declarator "*__src" (* "*") (identifier "__src")) (; ";")) (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *param_1 + -1;" (assignment_expression "iVar2 = *param_1 + -1" (identifier "iVar2") (= "=") (binary_expression "*param_1 + -1" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (-1 < iVar2) {\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }" (if "if") (parenthesized_expression "(-1 < iVar2)" (( "(") (binary_expression "-1 < iVar2" (number_literal "-1") (< "<") (identifier "iVar2")) () ")")) (compound_statement "{\n    iVar2 = iVar2 * 0x18;\n    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];\n    *param_3 = *(undefined4 *)(*param_2 + iVar2);\n    memcpy(param_5,__src,param_4 << 3);\n    free((void *)param_6[2]);\n    free(*(void **)(*param_2 + 8 + iVar2));\n    iVar2 = *param_2 + iVar2;\n    *param_6 = *(undefined4 *)(iVar2 + 0xc);\n    param_6[1] = *(undefined4 *)(iVar2 + 0x10);\n    uVar1 = *(undefined4 *)(iVar2 + 4);\n    param_6[2] = *(undefined4 *)(iVar2 + 0x14);\n    return uVar1;\n  }" ({ "{") (expression_statement "iVar2 = iVar2 * 0x18;" (assignment_expression "iVar2 = iVar2 * 0x18" (identifier "iVar2") (= "=") (binary_expression "iVar2 * 0x18" (identifier "iVar2") (* "*") (number_literal "0x18"))) (; ";")) (expression_statement "__src = (void *)((undefined4 *)(*param_2 + iVar2))[2];" (assignment_expression "__src = (void *)((undefined4 *)(*param_2 + iVar2))[2]" (identifier "__src") (= "=") (cast_expression "(void *)((undefined4 *)(*param_2 + iVar2))[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "((undefined4 *)(*param_2 + iVar2))[2]" (parenthesized_expression "((undefined4 *)(*param_2 + iVar2))" (( "(") (cast_expression "(undefined4 *)(*param_2 + iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + iVar2)" (( "(") (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (identifier "iVar2")) () ")"))) () ")")) ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "*param_3 = *(undefined4 *)(*param_2 + iVar2);" (assignment_expression "*param_3 = *(undefined4 *)(*param_2 + iVar2)" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (pointer_expression "*(undefined4 *)(*param_2 + iVar2)" (* "*") (cast_expression "(undefined4 *)(*param_2 + iVar2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_2 + iVar2)" (( "(") (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (identifier "iVar2")) () ")"))))) (; ";")) (expression_statement "memcpy(param_5,__src,param_4 << 3);" (call_expression "memcpy(param_5,__src,param_4 << 3)" (identifier "memcpy") (argument_list "(param_5,__src,param_4 << 3)" (( "(") (identifier "param_5") (, ",") (identifier "__src") (, ",") (binary_expression "param_4 << 3" (identifier "param_4") (<< "<<") (number_literal "3")) () ")"))) (; ";")) (expression_statement "free((void *)param_6[2]);" (call_expression "free((void *)param_6[2])" (identifier "free") (argument_list "((void *)param_6[2])" (( "(") (cast_expression "(void *)param_6[2]" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_6[2]" (identifier "param_6") ([ "[") (number_literal "2") (] "]"))) () ")"))) (; ";")) (expression_statement "free(*(void **)(*param_2 + 8 + iVar2));" (call_expression "free(*(void **)(*param_2 + 8 + iVar2))" (identifier "free") (argument_list "(*(void **)(*param_2 + 8 + iVar2))" (( "(") (pointer_expression "*(void **)(*param_2 + 8 + iVar2)" (* "*") (cast_expression "(void **)(*param_2 + 8 + iVar2)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_2 + 8 + iVar2)" (( "(") (binary_expression "*param_2 + 8 + iVar2" (binary_expression "*param_2 + 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (number_literal "8")) (+ "+") (identifier "iVar2")) () ")")))) () ")"))) (; ";")) (expression_statement "iVar2 = *param_2 + iVar2;" (assignment_expression "iVar2 = *param_2 + iVar2" (identifier "iVar2") (= "=") (binary_expression "*param_2 + iVar2" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "*param_6 = *(undefined4 *)(iVar2 + 0xc);" (assignment_expression "*param_6 = *(undefined4 *)(iVar2 + 0xc)" (pointer_expression "*param_6" (* "*") (identifier "param_6")) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0xc)" (( "(") (binary_expression "iVar2 + 0xc" (identifier "iVar2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "param_6[1] = *(undefined4 *)(iVar2 + 0x10);" (assignment_expression "param_6[1] = *(undefined4 *)(iVar2 + 0x10)" (subscript_expression "param_6[1]" (identifier "param_6") ([ "[") (number_literal "1") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined4 *)(iVar2 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(iVar2 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "param_6[2] = *(undefined4 *)(iVar2 + 0x14);" (assignment_expression "param_6[2] = *(undefined4 *)(iVar2 + 0x14)" (subscript_expression "param_6[2]" (identifier "param_6") ([ "[") (number_literal "2") (] "]")) (= "=") (pointer_expression "*(undefined4 *)(iVar2 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x14)" (( "(") (binary_expression "iVar2 + 0x14" (identifier "iVar2") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}"))) (expression_statement "__assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");" (call_expression "__assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack")" (identifier "__assert_fail") (argument_list "("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack")" (( "(") (string_literal ""num >= 0"" (" """) (string_content "num >= 0") (" """)) (, ",") (string_literal ""lib/regexec.c"" (" """) (string_content "lib/regexec.c") (" """)) (, ",") (number_literal "0x54f") (, ",") (string_literal ""pop_fail_stack"" (" """) (string_content "pop_fail_stack") (" """)) () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: Idx pop_fail_stack(re_fail_stack_t * fs, Idx * pidx, Idx nregs,
   regmatch_t * regs, re_node_set * eps_via_nodes, re_fail_stack_t * fs) */

type_1 __regparm3
function_1(type_2 *fs,type_1 *pidx,type_1 nregs,type_3 *regs,type_4 *eps_via_nodes,
              type_2 *fs_1)

{
  void *__src;
  type_1 IVar1;
  int var_1;
  
  var_1 = fs->num + -1;
  fs->num = var_1;
  if (-1 < var_1) {
    var_1 = var_1 * 0x18;
    __src = (void *)((type_5 *)(*pidx + var_1))[2];
    *(type_5 *)nregs = *(type_5 *)(*pidx + var_1);
    var_2(eps_via_nodes,__src,(int)regs << 3);
    var_3(fs_1->stack);
    var_3(*(void **)(*pidx + 8 + var_1));
    var_1 = *pidx + var_1;
    fs_1->num = *(type_1 *)(var_1 + 0xc);
    fs_1->alloc = *(type_1 *)(var_1 + 0x10);
    IVar1 = *(type_1 *)(var_1 + 4);
    fs_1->stack = *(type_6 **)(var_1 + 0x14);
    return IVar1;
  }
                    /* WARNING: Subroutine does not return */
  var_4("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 __regparm3
MASKED(int *param_1,int *param_2,undefined4 *param_3,int param_4,void *param_5,
            undefined4 *param_6)

{
  void *__src;
  undefined4 uVar1;
  int iVar2;
  
  iVar2 = *param_1 + -1;
  *param_1 = iVar2;
  if (-1 < iVar2) {
    iVar2 = iVar2 * 0x18;
    __src = (void *)((undefined4 *)(*param_2 + iVar2))[2];
    *param_3 = *(undefined4 *)(*param_2 + iVar2);
    memcpy(param_5,__src,param_4 << 3);
    free((void *)param_6[2]);
    free(*(void **)(*param_2 + 8 + iVar2));
    iVar2 = *param_2 + iVar2;
    *param_6 = *(undefined4 *)(iVar2 + 0xc);
    param_6[1] = *(undefined4 *)(iVar2 + 0x10);
    uVar1 = *(undefined4 *)(iVar2 + 4);
    param_6[2] = *(undefined4 *)(iVar2 + 0x14);
    return uVar1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("num >= 0","lib/regexec.c",0x54f,"pop_fail_stack");
}

