
/* DWARF original prototype: void check(Workqueue_thread * this, char * function, int err) */

void __thiscall gold::Workqueue_thread::check(Workqueue_thread *this,char *function,int err)

{
  int iVar1;
  undefined *puVar2;
  code *pcVar3;
  
  if (err == 0) {
    return;
  }
  puVar2 = PTR_LAB_004c4b74 + 0x4768;
  check((Workqueue_thread *)function,(char *)err,err);
  iVar1 = *(int *)(puVar2 + 0x1f0120);
  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);
  *(int *)((int)function + 4) = err;
  *(int *)function = iVar1 + 8;
  *(int *)((int)function + 8) = 0;
  (*pcVar3)((int *)((int)function + 0xc));
  *(int *)((int)function + 0x10) = 1;
  *(int *)((int)function + 0x14) = 1;
  return;
}



void FUN_002d4a10(undefined4 param_1,int *param_2,int param_3)

{
  int iVar1;
  undefined *puVar2;
  code *pcVar3;
  
  if (param_3 == 0) {
    return;
  }
  puVar2 = PTR_LAB_004c4b74 + 0x4768;
  FUN_002d4768();
  iVar1 = *(int *)(puVar2 + 0x1f0120);
  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);
  param_2[1] = param_3;
  *param_2 = iVar1 + 8;
  param_2[2] = 0;
  (*pcVar3)(param_2 + 3);
  param_2[4] = 1;
  param_2[5] = 1;
  return;
}


lui gp,0x1f
addiu gp,gp,0x4830
addu gp,gp,t9
bne a2,zero,0x002d4a2c
_nop
jr ra
_nop
lw t9,-0x46cc(gp)
addiu sp,sp,-0x20
or a0,a1,zero
addiu t9,t9,0x4768
sw gp,0x10(sp)
sw ra,0x1c(sp)
bal 0x002d4768
_or a1,a2,zero
(translation_unit "void FUN_002d4a10(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  FUN_002d4768();\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  param_2[1] = param_3;\n  *param_2 = iVar1 + 8;\n  param_2[2] = 0;\n  (*pcVar3)(param_2 + 3);\n  param_2[4] = 1;\n  param_2[5] = 1;\n  return;\n}\n\n" (function_definition "void FUN_002d4a10(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  FUN_002d4768();\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  param_2[1] = param_3;\n  *param_2 = iVar1 + 8;\n  param_2[2] = 0;\n  (*pcVar3)(param_2 + 3);\n  param_2[4] = 1;\n  param_2[5] = 1;\n  return;\n}" primitive_type (function_declarator "FUN_002d4a10(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  FUN_002d4768();\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  param_2[1] = param_3;\n  *param_2 = iVar1 + 8;\n  param_2[2] = 0;\n  (*pcVar3)(param_2 + 3);\n  param_2[4] = 1;\n  param_2[5] = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (param_3 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = PTR_LAB_004c4b74 + 0x4768;" (assignment_expression "puVar2 = PTR_LAB_004c4b74 + 0x4768" identifier = (binary_expression "PTR_LAB_004c4b74 + 0x4768" identifier + number_literal)) ;) (expression_statement "FUN_002d4768();" (call_expression "FUN_002d4768()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(puVar2 + 0x1f0120);" (assignment_expression "iVar1 = *(int *)(puVar2 + 0x1f0120)" identifier = (pointer_expression "*(int *)(puVar2 + 0x1f0120)" * (cast_expression "(int *)(puVar2 + 0x1f0120)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x1f0120)" ( (binary_expression "puVar2 + 0x1f0120" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = *(code **)(puVar2 + 0x1eeb5c);" (assignment_expression "pcVar3 = *(code **)(puVar2 + 0x1eeb5c)" identifier = (pointer_expression "*(code **)(puVar2 + 0x1eeb5c)" * (cast_expression "(code **)(puVar2 + 0x1eeb5c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x1eeb5c)" ( (binary_expression "puVar2 + 0x1eeb5c" identifier + number_literal) ))))) ;) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = iVar1 + 8;" (assignment_expression "*param_2 = iVar1 + 8" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar3)(param_2 + 3);" (call_expression "(*pcVar3)(param_2 + 3)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) ))) ;) (expression_statement "param_2[4] = 1;" (assignment_expression "param_2[4] = 1" (subscript_expression "param_2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[5] = 1;" (assignment_expression "param_2[5] = 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "/* DWARF original prototype: void check(Workqueue_thread * this, char * function, int err) */\n\nvoid __thiscall gold::Workqueue_thread::check(Workqueue_thread *this,char *function,int err)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (err == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  check((Workqueue_thread *)function,(char *)err,err);\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  *(int *)((int)function + 4) = err;\n  *(int *)function = iVar1 + 8;\n  *(int *)((int)function + 8) = 0;\n  (*pcVar3)((int *)((int)function + 0xc));\n  *(int *)((int)function + 0x10) = 1;\n  *(int *)((int)function + 0x14) = 1;\n  return;\n}\n\n" comment (function_definition "void __thiscall gold::Workqueue_thread::check(Workqueue_thread *this,char *function,int err)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (err == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  check((Workqueue_thread *)function,(char *)err,err);\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  *(int *)((int)function + 4) = err;\n  *(int *)function = iVar1 + 8;\n  *(int *)((int)function + 8) = 0;\n  (*pcVar3)((int *)((int)function + 0xc));\n  *(int *)((int)function + 0x10) = 1;\n  *(int *)((int)function + 0x14) = 1;\n  return;\n}" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "gold::Workqueue_thread::" identifier : : identifier : :) (function_declarator "check(Workqueue_thread *this,char *function,int err)" identifier (parameter_list "(Workqueue_thread *this,char *function,int err)" ( (parameter_declaration "Workqueue_thread *this" type_identifier (pointer_declarator "*this" * identifier)) , (parameter_declaration "char *function" primitive_type (pointer_declarator "*function" * identifier)) , (parameter_declaration "int err" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (err == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  check((Workqueue_thread *)function,(char *)err,err);\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  *(int *)((int)function + 4) = err;\n  *(int *)function = iVar1 + 8;\n  *(int *)((int)function + 8) = 0;\n  (*pcVar3)((int *)((int)function + 0xc));\n  *(int *)((int)function + 0x10) = 1;\n  *(int *)((int)function + 0x14) = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (err == 0) {\n    return;\n  }" if (parenthesized_expression "(err == 0)" ( (binary_expression "err == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = PTR_LAB_004c4b74 + 0x4768;" (assignment_expression "puVar2 = PTR_LAB_004c4b74 + 0x4768" identifier = (binary_expression "PTR_LAB_004c4b74 + 0x4768" identifier + number_literal)) ;) (expression_statement "check((Workqueue_thread *)function,(char *)err,err);" (call_expression "check((Workqueue_thread *)function,(char *)err,err)" identifier (argument_list "((Workqueue_thread *)function,(char *)err,err)" ( (cast_expression "(Workqueue_thread *)function" ( (type_descriptor "Workqueue_thread *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(char *)err" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) , identifier ))) ;) (expression_statement "iVar1 = *(int *)(puVar2 + 0x1f0120);" (assignment_expression "iVar1 = *(int *)(puVar2 + 0x1f0120)" identifier = (pointer_expression "*(int *)(puVar2 + 0x1f0120)" * (cast_expression "(int *)(puVar2 + 0x1f0120)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x1f0120)" ( (binary_expression "puVar2 + 0x1f0120" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = *(code **)(puVar2 + 0x1eeb5c);" (assignment_expression "pcVar3 = *(code **)(puVar2 + 0x1eeb5c)" identifier = (pointer_expression "*(code **)(puVar2 + 0x1eeb5c)" * (cast_expression "(code **)(puVar2 + 0x1eeb5c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x1eeb5c)" ( (binary_expression "puVar2 + 0x1eeb5c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)((int)function + 4) = err;" (assignment_expression "*(int *)((int)function + 4) = err" (pointer_expression "*(int *)((int)function + 4)" * (cast_expression "(int *)((int)function + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)function + 4)" ( (binary_expression "(int)function + 4" (cast_expression "(int)function" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)function = iVar1 + 8;" (assignment_expression "*(int *)function = iVar1 + 8" (pointer_expression "*(int *)function" * (cast_expression "(int *)function" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (expression_statement "*(int *)((int)function + 8) = 0;" (assignment_expression "*(int *)((int)function + 8) = 0" (pointer_expression "*(int *)((int)function + 8)" * (cast_expression "(int *)((int)function + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)function + 8)" ( (binary_expression "(int)function + 8" (cast_expression "(int)function" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "(*pcVar3)((int *)((int)function + 0xc));" (call_expression "(*pcVar3)((int *)((int)function + 0xc))" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "((int *)((int)function + 0xc))" ( (cast_expression "(int *)((int)function + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)function + 0xc)" ( (binary_expression "(int)function + 0xc" (cast_expression "(int)function" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) ))) ;) (expression_statement "*(int *)((int)function + 0x10) = 1;" (assignment_expression "*(int *)((int)function + 0x10) = 1" (pointer_expression "*(int *)((int)function + 0x10)" * (cast_expression "(int *)((int)function + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)function + 0x10)" ( (binary_expression "(int)function + 0x10" (cast_expression "(int)function" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(int *)((int)function + 0x14) = 1;" (assignment_expression "*(int *)((int)function + 0x14) = 1" (pointer_expression "*(int *)((int)function + 0x14)" * (cast_expression "(int *)((int)function + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)function + 0x14)" ( (binary_expression "(int)function + 0x14" (cast_expression "(int)function" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_002d4a10(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  FUN_002d4768();\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  param_2[1] = param_3;\n  *param_2 = iVar1 + 8;\n  param_2[2] = 0;\n  (*pcVar3)(param_2 + 3);\n  param_2[4] = 1;\n  param_2[5] = 1;\n  return;\n}\n\n" (function_definition "void FUN_002d4a10(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  FUN_002d4768();\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  param_2[1] = param_3;\n  *param_2 = iVar1 + 8;\n  param_2[2] = 0;\n  (*pcVar3)(param_2 + 3);\n  param_2[4] = 1;\n  param_2[5] = 1;\n  return;\n}" primitive_type (function_declarator "FUN_002d4a10(undefined4 param_1,int *param_2,int param_3)" identifier (parameter_list "(undefined4 param_1,int *param_2,int param_3)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  FUN_002d4768();\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  param_2[1] = param_3;\n  *param_2 = iVar1 + 8;\n  param_2[2] = 0;\n  (*pcVar3)(param_2 + 3);\n  param_2[4] = 1;\n  param_2[5] = 1;\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (if_statement "if (param_3 == 0) {\n    return;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar2 = PTR_LAB_004c4b74 + 0x4768;" (assignment_expression "puVar2 = PTR_LAB_004c4b74 + 0x4768" identifier = (binary_expression "PTR_LAB_004c4b74 + 0x4768" identifier + number_literal)) ;) (expression_statement "FUN_002d4768();" (call_expression "FUN_002d4768()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar1 = *(int *)(puVar2 + 0x1f0120);" (assignment_expression "iVar1 = *(int *)(puVar2 + 0x1f0120)" identifier = (pointer_expression "*(int *)(puVar2 + 0x1f0120)" * (cast_expression "(int *)(puVar2 + 0x1f0120)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x1f0120)" ( (binary_expression "puVar2 + 0x1f0120" identifier + number_literal) ))))) ;) (expression_statement "pcVar3 = *(code **)(puVar2 + 0x1eeb5c);" (assignment_expression "pcVar3 = *(code **)(puVar2 + 0x1eeb5c)" identifier = (pointer_expression "*(code **)(puVar2 + 0x1eeb5c)" * (cast_expression "(code **)(puVar2 + 0x1eeb5c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 0x1eeb5c)" ( (binary_expression "puVar2 + 0x1eeb5c" identifier + number_literal) ))))) ;) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*param_2 = iVar1 + 8;" (assignment_expression "*param_2 = iVar1 + 8" (pointer_expression "*param_2" * identifier) = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "(*pcVar3)(param_2 + 3);" (call_expression "(*pcVar3)(param_2 + 3)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(param_2 + 3)" ( (binary_expression "param_2 + 3" identifier + number_literal) ))) ;) (expression_statement "param_2[4] = 1;" (assignment_expression "param_2[4] = 1" (subscript_expression "param_2[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_2[5] = 1;" (assignment_expression "param_2[5] = 1" (subscript_expression "param_2[5]" identifier [ number_literal ]) = number_literal) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (return_statement return ;) })))
(function_definition "void FUN_002d4a10(undefined4 param_1,int *param_2,int param_3)\n\n{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  FUN_002d4768();\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  param_2[1] = param_3;\n  *param_2 = iVar1 + 8;\n  param_2[2] = 0;\n  (*pcVar3)(param_2 + 3);\n  param_2[4] = 1;\n  param_2[5] = 1;\n  return;\n}" (primitive_type "void") (function_declarator "FUN_002d4a10(undefined4 param_1,int *param_2,int param_3)" (identifier "FUN_002d4a10") (parameter_list "(undefined4 param_1,int *param_2,int param_3)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined *puVar2;\n  code *pcVar3;\n  \n  if (param_3 == 0) {\n    return;\n  }\n  puVar2 = PTR_LAB_004c4b74 + 0x4768;\n  FUN_002d4768();\n  iVar1 = *(int *)(puVar2 + 0x1f0120);\n  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);\n  param_2[1] = param_3;\n  *param_2 = iVar1 + 8;\n  param_2[2] = 0;\n  (*pcVar3)(param_2 + 3);\n  param_2[4] = 1;\n  param_2[5] = 1;\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (if_statement "if (param_3 == 0) {\n    return;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar2 = PTR_LAB_004c4b74 + 0x4768;" (assignment_expression "puVar2 = PTR_LAB_004c4b74 + 0x4768" (identifier "puVar2") (= "=") (binary_expression "PTR_LAB_004c4b74 + 0x4768" (identifier "PTR_LAB_004c4b74") (+ "+") (number_literal "0x4768"))) (; ";")) (expression_statement "FUN_002d4768();" (call_expression "FUN_002d4768()" (identifier "FUN_002d4768") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar1 = *(int *)(puVar2 + 0x1f0120);" (assignment_expression "iVar1 = *(int *)(puVar2 + 0x1f0120)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(puVar2 + 0x1f0120)" (* "*") (cast_expression "(int *)(puVar2 + 0x1f0120)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x1f0120)" (( "(") (binary_expression "puVar2 + 0x1f0120" (identifier "puVar2") (+ "+") (number_literal "0x1f0120")) () ")"))))) (; ";")) (expression_statement "pcVar3 = *(code **)(puVar2 + 0x1eeb5c);" (assignment_expression "pcVar3 = *(code **)(puVar2 + 0x1eeb5c)" (identifier "pcVar3") (= "=") (pointer_expression "*(code **)(puVar2 + 0x1eeb5c)" (* "*") (cast_expression "(code **)(puVar2 + 0x1eeb5c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + 0x1eeb5c)" (( "(") (binary_expression "puVar2 + 0x1eeb5c" (identifier "puVar2") (+ "+") (number_literal "0x1eeb5c")) () ")"))))) (; ";")) (expression_statement "param_2[1] = param_3;" (assignment_expression "param_2[1] = param_3" (subscript_expression "param_2[1]" (identifier "param_2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*param_2 = iVar1 + 8;" (assignment_expression "*param_2 = iVar1 + 8" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "param_2[2] = 0;" (assignment_expression "param_2[2] = 0" (subscript_expression "param_2[2]" (identifier "param_2") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*pcVar3)(param_2 + 3);" (call_expression "(*pcVar3)(param_2 + 3)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(param_2 + 3)" (( "(") (binary_expression "param_2 + 3" (identifier "param_2") (+ "+") (number_literal "3")) () ")"))) (; ";")) (expression_statement "param_2[4] = 1;" (assignment_expression "param_2[4] = 1" (subscript_expression "param_2[4]" (identifier "param_2") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "param_2[5] = 1;" (assignment_expression "param_2[5] = 1" (subscript_expression "param_2[5]" (identifier "param_2") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "1")) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* DWARF original prototype: void check(Workqueue_thread * this, char * function, int err) */

void __thiscall gold::type_1::function_1(type_1 *this,char *function,int var_1)

{
  int var_4;
  type_2 *var_3;
  type_3 *pcVar3;
  
  if (var_1 == 0) {
    return;
  }
  var_3 = var_2 + 0x4768;
  function_1((type_1 *)function,(char *)var_1,var_1);
  var_4 = *(int *)(var_3 + 0x1f0120);
  pcVar3 = *(type_3 **)(var_3 + 0x1eeb5c);
  *(int *)((int)function + 4) = var_1;
  *(int *)function = var_4 + 8;
  *(int *)((int)function + 8) = 0;
  (*pcVar3)((int *)((int)function + 0xc));
  *(int *)((int)function + 0x10) = 1;
  *(int *)((int)function + 0x14) = 1;
  return;
}


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

void MASKED(undefined4 param_1,int *param_2,int param_3)

{
  int iVar1;
  undefined *puVar2;
  code *pcVar3;
  
  if (param_3 == 0) {
    return;
  }
  puVar2 = PTR_LAB_004c4b74 + 0x4768;
  FUN_002d4768();
  iVar1 = *(int *)(puVar2 + 0x1f0120);
  pcVar3 = *(code **)(puVar2 + 0x1eeb5c);
  param_2[1] = param_3;
  *param_2 = iVar1 + 8;
  param_2[2] = 0;
  (*pcVar3)(param_2 + 3);
  param_2[4] = 1;
  param_2[5] = 1;
  return;
}

