
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void dot_spillreg(int pred)

{
  uint uVar1;
  int iVar2;
  char *format;
  unw_rec_list *ptr;
  char *po;
  ushort local_3e;
  uint qp;
  uint ab;
  uint reg;
  expressionS e;
  
  if (pred == 0) {
    iVar2 = in_procedure("spillreg");
    if (iVar2 == 0) {
      return;
    }
    po = "spillreg";
    iVar2 = parse_operand(&e,0x2c);
    resolve_expression(&e);
    qp = 0;
  }
  else {
    iVar2 = in_procedure("spillreg.p");
    if (iVar2 == 0) {
      return;
    }
    po = "spillreg.p";
    iVar2 = parse_predicate_and_operand(&e,&qp,"spillreg.p");
  }
  convert_expr_to_ab_reg(&e,&ab,&reg,po,pred + 1);
  if (iVar2 == 0x2c) {
    iVar2 = parse_operand(&e,0x2c);
    resolve_expression(&e);
    if (e._16_1_ == '\x05') {
      if ((ulong)e.X_add_number - 1 < 0x7f) {
        local_3e = 0;
        goto LAB_00048ad0;
      }
      if ((ulong)e.X_add_number - 0x82 < 0x7e) {
        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;
        local_3e = 1;
        goto LAB_00048ad0;
      }
      e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248;
      local_3e = 2;
      if ((ulong)e.X_add_number < 8) goto LAB_00048ad0;
    }
  }
  else {
    e._16_1_ = 1;
  }
  format = (char *)dcgettext(0,"Operand %d to .%s must be a writable register",5);
  as_bad(format,pred + 2,po);
  local_3e = 0;
  e.X_add_number._0_4_ = 0;
LAB_00048ad0:
  uVar1 = qp;
  ptr = alloc_record((-(uint)(qp == 0) & 0xfffffffd) + spill_reg_p);
  (ptr->r).record.b.ecount = (ushort)reg;
  (ptr->r).record.x.xy = local_3e;
  (ptr->r).record.x.ab = (ushort)ab;
  (ptr->r).record.p.t = (ulong)e.X_add_number;
  (ptr->r).record.x.qp = (ushort)uVar1;
  add_unwind_entry(ptr,iVar2);
  return;
}



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

void FUN_00048a20(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  char *pcVar3;
  undefined2 local_3e;
  undefined2 local_3c;
  undefined2 local_38;
  undefined2 local_34;
  undefined1 local_30 [8];
  uint local_28;
  char local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x48a29;
  if (param_1 == 0) {
    iVar1 = FUN_000487e0();
    if (iVar1 == 0) {
      return;
    }
    pcVar3 = "spillreg";
    iVar1 = FUN_00040d30();
    FUN_0001eec0(local_30);
    local_3c = 0;
  }
  else {
    iVar1 = FUN_000487e0();
    if (iVar1 == 0) {
      return;
    }
    pcVar3 = "spillreg.p";
    iVar1 = FUN_00041110();
  }
  FUN_0003ea80(pcVar3,param_1 + 1);
  if (iVar1 == 0x2c) {
    FUN_00040d30();
    FUN_0001eec0(local_30);
    if (local_20 == '\x05') {
      if (local_28 - 1 < 0x7f) {
        local_3e = 0;
        goto LAB_00048ad0;
      }
      if (local_28 - 0x82 < 0x7e) {
        local_28 = local_28 - 0x80;
        local_3e = 1;
        goto LAB_00048ad0;
      }
      local_28 = local_28 - 0x248;
      local_3e = 2;
      if (local_28 < 8) goto LAB_00048ad0;
    }
  }
  else {
    local_20 = '\x01';
  }
  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);
  FUN_00029550(uVar2,param_1 + 2,pcVar3);
  local_3e = 0;
  local_28 = 0;
LAB_00048ad0:
  iVar1 = FUN_00041760();
  *(undefined2 *)(iVar1 + 0xc) = local_34;
  *(undefined2 *)(iVar1 + 0x12) = local_3e;
  *(undefined2 *)(iVar1 + 0x10) = local_38;
  *(uint *)(iVar1 + 8) = local_28;
  *(undefined2 *)(iVar1 + 0xe) = local_3c;
  FUN_00041030();
  return;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016030
ADD EBX,0x355d7
SUB ESP,0x3c
MOV ESI,dword ptr [ESP + 0x50]
TEST ESI,ESI
JZ 0x00048b20
LEA EAX,[EBX + 0xfffe57cc]
CALL 0x000487e0
TEST EAX,EAX
JZ 0x00048b13
LEA ESI,[ESP + 0x1c]
LEA EDX,[ESP + 0x10]
LEA ECX,[EBX + 0xfffe57cc]
MOV EAX,ESI
LEA EBP,[EBX + 0xfffe57cc]
CALL 0x00041110
MOV EDI,EAX
LEA ECX,[ESP + 0x18]
LEA EDX,[ESP + 0x14]
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x58]
ADD EAX,0x1
PUSH EAX
MOV EAX,ESI
PUSH EBP
CALL 0x0003ea80
ADD ESP,0x10
CMP EDI,0x2c
JZ 0x00048b60
MOV byte ptr [ESP + 0x2c],0x1
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe3d60]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141b0
ADD ESP,0xc
PUSH EBP
MOV ESI,dword ptr [ESP + 0x58]
LEA EDX,[ESI + 0x2]
XOR ESI,ESI
PUSH EDX
PUSH EAX
CALL 0x00029550
ADD ESP,0x10
XOR EDX,EDX
MOV word ptr [ESP + 0xe],DX
LEA ESI,[ESI]
NOP
MOV EBX,dword ptr [ESP + 0x10]
MOV ECX,dword ptr [ESP + 0x14]
MOV EBP,dword ptr [ESP + 0x18]
CMP EBX,0x1
MOV dword ptr [ESP + 0x8],ECX
SBB EAX,EAX
AND EAX,0xfffffffd
ADD EAX,0x41
CALL 0x00041760
MOVZX EDX,word ptr [ESP + 0xe]
MOV ECX,dword ptr [ESP + 0x8]
MOV word ptr [EAX + 0xc],BP
MOV word ptr [EAX + 0x12],DX
MOV EDX,EDI
MOV word ptr [EAX + 0x10],CX
MOV dword ptr [EAX + 0x8],ESI
MOV word ptr [EAX + 0xe],BX
CALL 0x00041030
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xfffe57d7]
CALL 0x000487e0
TEST EAX,EAX
JZ 0x00048b13
LEA ESI,[ESP + 0x1c]
MOV EDX,0x2c
LEA EBP,[EBX + 0xfffe57d7]
MOV EAX,ESI
CALL 0x00040d30
SUB ESP,0xc
PUSH ESI
MOV EDI,EAX
CALL 0x0001eec0
MOV dword ptr [ESP + 0x20],0x0
ADD ESP,0x10
JMP 0x00048a6e
MOV EDX,0x2c
MOV EAX,ESI
CALL 0x00040d30
SUB ESP,0xc
PUSH ESI
MOV EDI,EAX
CALL 0x0001eec0
MOV ESI,dword ptr [ESP + 0x34]
ADD ESP,0x10
CMP byte ptr [ESP + 0x2c],0x5
JNZ 0x00048a9a
LEA EAX,[ESI + -0x1]
CMP EAX,0x7e
JA 0x00048b9d
XOR EAX,EAX
MOV word ptr [ESP + 0xe],AX
JMP 0x00048ad0
LEA EAX,[ESI + 0xffffff7e]
CMP EAX,0x7d
JA 0x00048bba
MOV ECX,0x1
ADD ESI,-0x80
MOV word ptr [ESP + 0xe],CX
JMP 0x00048ad0
SUB ESI,0x248
MOV word ptr [ESP + 0xe],0x2
CMP ESI,0x7
JBE 0x00048ad0
JMP 0x00048a9a
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid FUN_00048a20(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined2 local_3e;\n  undefined2 local_3c;\n  undefined2 local_38;\n  undefined2 local_34;\n  undefined1 local_30 [8];\n  uint local_28;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x48a29;\n  if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }\n  FUN_0003ea80(pcVar3,param_1 + 1);\n  if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }\n  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  FUN_00029550(uVar2,param_1 + 2,pcVar3);\n  local_3e = 0;\n  local_28 = 0;\nLAB_00048ad0:\n  iVar1 = FUN_00041760();\n  *(undefined2 *)(iVar1 + 0xc) = local_34;\n  *(undefined2 *)(iVar1 + 0x12) = local_3e;\n  *(undefined2 *)(iVar1 + 0x10) = local_38;\n  *(uint *)(iVar1 + 8) = local_28;\n  *(undefined2 *)(iVar1 + 0xe) = local_3c;\n  FUN_00041030();\n  return;\n}\n\n" comment (function_definition "void FUN_00048a20(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined2 local_3e;\n  undefined2 local_3c;\n  undefined2 local_38;\n  undefined2 local_34;\n  undefined1 local_30 [8];\n  uint local_28;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x48a29;\n  if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }\n  FUN_0003ea80(pcVar3,param_1 + 1);\n  if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }\n  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  FUN_00029550(uVar2,param_1 + 2,pcVar3);\n  local_3e = 0;\n  local_28 = 0;\nLAB_00048ad0:\n  iVar1 = FUN_00041760();\n  *(undefined2 *)(iVar1 + 0xc) = local_34;\n  *(undefined2 *)(iVar1 + 0x12) = local_3e;\n  *(undefined2 *)(iVar1 + 0x10) = local_38;\n  *(uint *)(iVar1 + 8) = local_28;\n  *(undefined2 *)(iVar1 + 0xe) = local_3c;\n  FUN_00041030();\n  return;\n}" primitive_type (function_declarator "FUN_00048a20(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined2 local_3e;\n  undefined2 local_3c;\n  undefined2 local_38;\n  undefined2 local_34;\n  undefined1 local_30 [8];\n  uint local_28;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x48a29;\n  if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }\n  FUN_0003ea80(pcVar3,param_1 + 1);\n  if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }\n  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  FUN_00029550(uVar2,param_1 + 2,pcVar3);\n  local_3e = 0;\n  local_28 = 0;\nLAB_00048ad0:\n  iVar1 = FUN_00041760();\n  *(undefined2 *)(iVar1 + 0xc) = local_34;\n  *(undefined2 *)(iVar1 + 0x12) = local_3e;\n  *(undefined2 *)(iVar1 + 0x10) = local_38;\n  *(uint *)(iVar1 + 8) = local_28;\n  *(undefined2 *)(iVar1 + 0xe) = local_3c;\n  FUN_00041030();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined2 local_3e;" type_identifier identifier ;) (declaration "undefined2 local_3c;" type_identifier identifier ;) (declaration "undefined2 local_38;" type_identifier identifier ;) (declaration "undefined2 local_34;" type_identifier identifier ;) (declaration "undefined1 local_30 [8];" type_identifier (array_declarator "local_30 [8]" identifier [ number_literal ]) ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "char local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x48a29;" (assignment_expression "uStack_14 = 0x48a29" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }" { (expression_statement "iVar1 = FUN_000487e0();" (assignment_expression "iVar1 = FUN_000487e0()" identifier = (call_expression "FUN_000487e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar3 = "spillreg";" (assignment_expression "pcVar3 = "spillreg"" identifier = (string_literal ""spillreg"" " string_content ")) ;) (expression_statement "iVar1 = FUN_00040d30();" (assignment_expression "iVar1 = FUN_00040d30()" identifier = (call_expression "FUN_00040d30()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0001eec0(local_30);" (call_expression "FUN_0001eec0(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }" else (compound_statement "{\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }" { (expression_statement "iVar1 = FUN_000487e0();" (assignment_expression "iVar1 = FUN_000487e0()" identifier = (call_expression "FUN_000487e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar3 = "spillreg.p";" (assignment_expression "pcVar3 = "spillreg.p"" identifier = (string_literal ""spillreg.p"" " string_content ")) ;) (expression_statement "iVar1 = FUN_00041110();" (assignment_expression "iVar1 = FUN_00041110()" identifier = (call_expression "FUN_00041110()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "FUN_0003ea80(pcVar3,param_1 + 1);" (call_expression "FUN_0003ea80(pcVar3,param_1 + 1)" identifier (argument_list "(pcVar3,param_1 + 1)" ( identifier , (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (if_statement "if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }" if (parenthesized_expression "(iVar1 == 0x2c)" ( (binary_expression "iVar1 == 0x2c" identifier == number_literal) )) (compound_statement "{\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }" { (expression_statement "FUN_00040d30();" (call_expression "FUN_00040d30()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001eec0(local_30);" (call_expression "FUN_0001eec0(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (if_statement "if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }" if (parenthesized_expression "(local_20 == '\x05')" ( (binary_expression "local_20 == '\x05'" identifier == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }" { (if_statement "if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }" if (parenthesized_expression "(local_28 - 1 < 0x7f)" ( (binary_expression "local_28 - 1 < 0x7f" (binary_expression "local_28 - 1" identifier - number_literal) < number_literal) )) (compound_statement "{\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }" { (expression_statement "local_3e = 0;" (assignment_expression "local_3e = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00048ad0;" goto statement_identifier ;) })) (if_statement "if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }" if (parenthesized_expression "(local_28 - 0x82 < 0x7e)" ( (binary_expression "local_28 - 0x82 < 0x7e" (binary_expression "local_28 - 0x82" identifier - number_literal) < number_literal) )) (compound_statement "{\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }" { (expression_statement "local_28 = local_28 - 0x80;" (assignment_expression "local_28 = local_28 - 0x80" identifier = (binary_expression "local_28 - 0x80" identifier - number_literal)) ;) (expression_statement "local_3e = 1;" (assignment_expression "local_3e = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00048ad0;" goto statement_identifier ;) })) (expression_statement "local_28 = local_28 - 0x248;" (assignment_expression "local_28 = local_28 - 0x248" identifier = (binary_expression "local_28 - 0x248" identifier - number_literal)) ;) (expression_statement "local_3e = 2;" (assignment_expression "local_3e = 2" identifier = number_literal) ;) (if_statement "if (local_28 < 8) goto LAB_00048ad0;" if (parenthesized_expression "(local_28 < 8)" ( (binary_expression "local_28 < 8" identifier < number_literal) )) (goto_statement "goto LAB_00048ad0;" goto statement_identifier ;)) })) }) (else_clause "else {\n    local_20 = '\x01';\n  }" else (compound_statement "{\n    local_20 = '\x01';\n  }" { (expression_statement "local_20 = '\x01';" (assignment_expression "local_20 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) (expression_statement "uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);" (assignment_expression "uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5)" identifier = (call_expression "dcgettext(0,"Operand %d to .%s must be a writable register",5)" identifier (argument_list "(0,"Operand %d to .%s must be a writable register",5)" ( number_literal , (string_literal ""Operand %d to .%s must be a writable register"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00029550(uVar2,param_1 + 2,pcVar3);" (call_expression "FUN_00029550(uVar2,param_1 + 2,pcVar3)" identifier (argument_list "(uVar2,param_1 + 2,pcVar3)" ( identifier , (binary_expression "param_1 + 2" identifier + number_literal) , identifier ))) ;) (expression_statement "local_3e = 0;" (assignment_expression "local_3e = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00048ad0:\n  iVar1 = FUN_00041760();" statement_identifier : (expression_statement "iVar1 = FUN_00041760();" (assignment_expression "iVar1 = FUN_00041760()" identifier = (call_expression "FUN_00041760()" identifier (argument_list "()" ( )))) ;)) (expression_statement "*(undefined2 *)(iVar1 + 0xc) = local_34;" (assignment_expression "*(undefined2 *)(iVar1 + 0xc) = local_34" (pointer_expression "*(undefined2 *)(iVar1 + 0xc)" * (cast_expression "(undefined2 *)(iVar1 + 0xc)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar1 + 0x12) = local_3e;" (assignment_expression "*(undefined2 *)(iVar1 + 0x12) = local_3e" (pointer_expression "*(undefined2 *)(iVar1 + 0x12)" * (cast_expression "(undefined2 *)(iVar1 + 0x12)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x12)" ( (binary_expression "iVar1 + 0x12" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar1 + 0x10) = local_38;" (assignment_expression "*(undefined2 *)(iVar1 + 0x10) = local_38" (pointer_expression "*(undefined2 *)(iVar1 + 0x10)" * (cast_expression "(undefined2 *)(iVar1 + 0x10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar1 + 8) = local_28;" (assignment_expression "*(uint *)(iVar1 + 8) = local_28" (pointer_expression "*(uint *)(iVar1 + 8)" * (cast_expression "(uint *)(iVar1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar1 + 0xe) = local_3c;" (assignment_expression "*(undefined2 *)(iVar1 + 0xe) = local_3c" (pointer_expression "*(undefined2 *)(iVar1 + 0xe)" * (cast_expression "(undefined2 *)(iVar1 + 0xe)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xe)" ( (binary_expression "iVar1 + 0xe" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00041030();" (call_expression "FUN_00041030()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid dot_spillreg(int pred)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *format;\n  unw_rec_list *ptr;\n  char *po;\n  ushort local_3e;\n  uint qp;\n  uint ab;\n  uint reg;\n  expressionS e;\n  \n  if (pred == 0) {\n    iVar2 = in_procedure("spillreg");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg";\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    qp = 0;\n  }\n  else {\n    iVar2 = in_procedure("spillreg.p");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg.p";\n    iVar2 = parse_predicate_and_operand(&e,&qp,"spillreg.p");\n  }\n  convert_expr_to_ab_reg(&e,&ab,&reg,po,pred + 1);\n  if (iVar2 == 0x2c) {\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    if (e._16_1_ == '\x05') {\n      if ((ulong)e.X_add_number - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if ((ulong)e.X_add_number - 0x82 < 0x7e) {\n        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248;\n      local_3e = 2;\n      if ((ulong)e.X_add_number < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    e._16_1_ = 1;\n  }\n  format = (char *)dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  as_bad(format,pred + 2,po);\n  local_3e = 0;\n  e.X_add_number._0_4_ = 0;\nLAB_00048ad0:\n  uVar1 = qp;\n  ptr = alloc_record((-(uint)(qp == 0) & 0xfffffffd) + spill_reg_p);\n  (ptr->r).record.b.ecount = (ushort)reg;\n  (ptr->r).record.x.xy = local_3e;\n  (ptr->r).record.x.ab = (ushort)ab;\n  (ptr->r).record.p.t = (ulong)e.X_add_number;\n  (ptr->r).record.x.qp = (ushort)uVar1;\n  add_unwind_entry(ptr,iVar2);\n  return;\n}\n\n" comment comment (function_definition "void dot_spillreg(int pred)\n\n{\n  uint uVar1;\n  int iVar2;\n  char *format;\n  unw_rec_list *ptr;\n  char *po;\n  ushort local_3e;\n  uint qp;\n  uint ab;\n  uint reg;\n  expressionS e;\n  \n  if (pred == 0) {\n    iVar2 = in_procedure("spillreg");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg";\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    qp = 0;\n  }\n  else {\n    iVar2 = in_procedure("spillreg.p");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg.p";\n    iVar2 = parse_predicate_and_operand(&e,&qp,"spillreg.p");\n  }\n  convert_expr_to_ab_reg(&e,&ab,&reg,po,pred + 1);\n  if (iVar2 == 0x2c) {\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    if (e._16_1_ == '\x05') {\n      if ((ulong)e.X_add_number - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if ((ulong)e.X_add_number - 0x82 < 0x7e) {\n        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248;\n      local_3e = 2;\n      if ((ulong)e.X_add_number < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    e._16_1_ = 1;\n  }\n  format = (char *)dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  as_bad(format,pred + 2,po);\n  local_3e = 0;\n  e.X_add_number._0_4_ = 0;\nLAB_00048ad0:\n  uVar1 = qp;\n  ptr = alloc_record((-(uint)(qp == 0) & 0xfffffffd) + spill_reg_p);\n  (ptr->r).record.b.ecount = (ushort)reg;\n  (ptr->r).record.x.xy = local_3e;\n  (ptr->r).record.x.ab = (ushort)ab;\n  (ptr->r).record.p.t = (ulong)e.X_add_number;\n  (ptr->r).record.x.qp = (ushort)uVar1;\n  add_unwind_entry(ptr,iVar2);\n  return;\n}" primitive_type (function_declarator "dot_spillreg(int pred)" identifier (parameter_list "(int pred)" ( (parameter_declaration "int pred" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  char *format;\n  unw_rec_list *ptr;\n  char *po;\n  ushort local_3e;\n  uint qp;\n  uint ab;\n  uint reg;\n  expressionS e;\n  \n  if (pred == 0) {\n    iVar2 = in_procedure("spillreg");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg";\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    qp = 0;\n  }\n  else {\n    iVar2 = in_procedure("spillreg.p");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg.p";\n    iVar2 = parse_predicate_and_operand(&e,&qp,"spillreg.p");\n  }\n  convert_expr_to_ab_reg(&e,&ab,&reg,po,pred + 1);\n  if (iVar2 == 0x2c) {\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    if (e._16_1_ == '\x05') {\n      if ((ulong)e.X_add_number - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if ((ulong)e.X_add_number - 0x82 < 0x7e) {\n        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248;\n      local_3e = 2;\n      if ((ulong)e.X_add_number < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    e._16_1_ = 1;\n  }\n  format = (char *)dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  as_bad(format,pred + 2,po);\n  local_3e = 0;\n  e.X_add_number._0_4_ = 0;\nLAB_00048ad0:\n  uVar1 = qp;\n  ptr = alloc_record((-(uint)(qp == 0) & 0xfffffffd) + spill_reg_p);\n  (ptr->r).record.b.ecount = (ushort)reg;\n  (ptr->r).record.x.xy = local_3e;\n  (ptr->r).record.x.ab = (ushort)ab;\n  (ptr->r).record.p.t = (ulong)e.X_add_number;\n  (ptr->r).record.x.qp = (ushort)uVar1;\n  add_unwind_entry(ptr,iVar2);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "unw_rec_list *ptr;" type_identifier (pointer_declarator "*ptr" * identifier) ;) (declaration "char *po;" primitive_type (pointer_declarator "*po" * identifier) ;) (declaration "ushort local_3e;" type_identifier identifier ;) (declaration "uint qp;" type_identifier identifier ;) (declaration "uint ab;" type_identifier identifier ;) (declaration "uint reg;" type_identifier identifier ;) (declaration "expressionS e;" type_identifier identifier ;) (if_statement "if (pred == 0) {\n    iVar2 = in_procedure("spillreg");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg";\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    qp = 0;\n  }\n  else {\n    iVar2 = in_procedure("spillreg.p");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg.p";\n    iVar2 = parse_predicate_and_operand(&e,&qp,"spillreg.p");\n  }" if (parenthesized_expression "(pred == 0)" ( (binary_expression "pred == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = in_procedure("spillreg");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg";\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    qp = 0;\n  }" { (expression_statement "iVar2 = in_procedure("spillreg");" (assignment_expression "iVar2 = in_procedure("spillreg")" identifier = (call_expression "in_procedure("spillreg")" identifier (argument_list "("spillreg")" ( (string_literal ""spillreg"" " string_content ") )))) ;) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "po = "spillreg";" (assignment_expression "po = "spillreg"" identifier = (string_literal ""spillreg"" " string_content ")) ;) (expression_statement "iVar2 = parse_operand(&e,0x2c);" (assignment_expression "iVar2 = parse_operand(&e,0x2c)" identifier = (call_expression "parse_operand(&e,0x2c)" identifier (argument_list "(&e,0x2c)" ( (pointer_expression "&e" & identifier) , number_literal )))) ;) (expression_statement "resolve_expression(&e);" (call_expression "resolve_expression(&e)" identifier (argument_list "(&e)" ( (pointer_expression "&e" & identifier) ))) ;) (expression_statement "qp = 0;" (assignment_expression "qp = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar2 = in_procedure("spillreg.p");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg.p";\n    iVar2 = parse_predicate_and_operand(&e,&qp,"spillreg.p");\n  }" else (compound_statement "{\n    iVar2 = in_procedure("spillreg.p");\n    if (iVar2 == 0) {\n      return;\n    }\n    po = "spillreg.p";\n    iVar2 = parse_predicate_and_operand(&e,&qp,"spillreg.p");\n  }" { (expression_statement "iVar2 = in_procedure("spillreg.p");" (assignment_expression "iVar2 = in_procedure("spillreg.p")" identifier = (call_expression "in_procedure("spillreg.p")" identifier (argument_list "("spillreg.p")" ( (string_literal ""spillreg.p"" " string_content ") )))) ;) (if_statement "if (iVar2 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "po = "spillreg.p";" (assignment_expression "po = "spillreg.p"" identifier = (string_literal ""spillreg.p"" " string_content ")) ;) (expression_statement "iVar2 = parse_predicate_and_operand(&e,&qp,"spillreg.p");" (assignment_expression "iVar2 = parse_predicate_and_operand(&e,&qp,"spillreg.p")" identifier = (call_expression "parse_predicate_and_operand(&e,&qp,"spillreg.p")" identifier (argument_list "(&e,&qp,"spillreg.p")" ( (pointer_expression "&e" & identifier) , (pointer_expression "&qp" & identifier) , (string_literal ""spillreg.p"" " string_content ") )))) ;) }))) (expression_statement "convert_expr_to_ab_reg(&e,&ab,&reg,po,pred + 1);" (call_expression "convert_expr_to_ab_reg(&e,&ab,&reg,po,pred + 1)" identifier (argument_list "(&e,&ab,&reg,po,pred + 1)" ( (pointer_expression "&e" & identifier) , (pointer_expression "&ab" & identifier) , (pointer_expression "&reg" & identifier) , identifier , (binary_expression "pred + 1" identifier + number_literal) ))) ;) (if_statement "if (iVar2 == 0x2c) {\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    if (e._16_1_ == '\x05') {\n      if ((ulong)e.X_add_number - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if ((ulong)e.X_add_number - 0x82 < 0x7e) {\n        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248;\n      local_3e = 2;\n      if ((ulong)e.X_add_number < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    e._16_1_ = 1;\n  }" if (parenthesized_expression "(iVar2 == 0x2c)" ( (binary_expression "iVar2 == 0x2c" identifier == number_literal) )) (compound_statement "{\n    iVar2 = parse_operand(&e,0x2c);\n    resolve_expression(&e);\n    if (e._16_1_ == '\x05') {\n      if ((ulong)e.X_add_number - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if ((ulong)e.X_add_number - 0x82 < 0x7e) {\n        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248;\n      local_3e = 2;\n      if ((ulong)e.X_add_number < 8) goto LAB_00048ad0;\n    }\n  }" { (expression_statement "iVar2 = parse_operand(&e,0x2c);" (assignment_expression "iVar2 = parse_operand(&e,0x2c)" identifier = (call_expression "parse_operand(&e,0x2c)" identifier (argument_list "(&e,0x2c)" ( (pointer_expression "&e" & identifier) , number_literal )))) ;) (expression_statement "resolve_expression(&e);" (call_expression "resolve_expression(&e)" identifier (argument_list "(&e)" ( (pointer_expression "&e" & identifier) ))) ;) (if_statement "if (e._16_1_ == '\x05') {\n      if ((ulong)e.X_add_number - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if ((ulong)e.X_add_number - 0x82 < 0x7e) {\n        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248;\n      local_3e = 2;\n      if ((ulong)e.X_add_number < 8) goto LAB_00048ad0;\n    }" if (parenthesized_expression "(e._16_1_ == '\x05')" ( (binary_expression "e._16_1_ == '\x05'" (field_expression "e._16_1_" identifier . field_identifier) == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      if ((ulong)e.X_add_number - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if ((ulong)e.X_add_number - 0x82 < 0x7e) {\n        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248;\n      local_3e = 2;\n      if ((ulong)e.X_add_number < 8) goto LAB_00048ad0;\n    }" { (if_statement "if ((ulong)e.X_add_number - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }" if (parenthesized_expression "((ulong)e.X_add_number - 1 < 0x7f)" ( (binary_expression "(ulong)e.X_add_number - 1 < 0x7f" (binary_expression "(ulong)e.X_add_number - 1" (cast_expression "(ulong)e.X_add_number" ( (type_descriptor "ulong" type_identifier) ) (field_expression "e.X_add_number" identifier . field_identifier)) - number_literal) < number_literal) )) (compound_statement "{\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }" { (expression_statement "local_3e = 0;" (assignment_expression "local_3e = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00048ad0;" goto statement_identifier ;) })) (if_statement "if ((ulong)e.X_add_number - 0x82 < 0x7e) {\n        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }" if (parenthesized_expression "((ulong)e.X_add_number - 0x82 < 0x7e)" ( (binary_expression "(ulong)e.X_add_number - 0x82 < 0x7e" (binary_expression "(ulong)e.X_add_number - 0x82" (cast_expression "(ulong)e.X_add_number" ( (type_descriptor "ulong" type_identifier) ) (field_expression "e.X_add_number" identifier . field_identifier)) - number_literal) < number_literal) )) (compound_statement "{\n        e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }" { (expression_statement "e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80;" (assignment_expression "e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x80" (field_expression "e.X_add_number._0_4_" (field_expression "e.X_add_number" identifier . field_identifier) . field_identifier) = (binary_expression "(ulong)e.X_add_number - 0x80" (cast_expression "(ulong)e.X_add_number" ( (type_descriptor "ulong" type_identifier) ) (field_expression "e.X_add_number" identifier . field_identifier)) - number_literal)) ;) (expression_statement "local_3e = 1;" (assignment_expression "local_3e = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00048ad0;" goto statement_identifier ;) })) (expression_statement "e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248;" (assignment_expression "e.X_add_number._0_4_ = (ulong)e.X_add_number - 0x248" (field_expression "e.X_add_number._0_4_" (field_expression "e.X_add_number" identifier . field_identifier) . field_identifier) = (binary_expression "(ulong)e.X_add_number - 0x248" (cast_expression "(ulong)e.X_add_number" ( (type_descriptor "ulong" type_identifier) ) (field_expression "e.X_add_number" identifier . field_identifier)) - number_literal)) ;) (expression_statement "local_3e = 2;" (assignment_expression "local_3e = 2" identifier = number_literal) ;) (if_statement "if ((ulong)e.X_add_number < 8) goto LAB_00048ad0;" if (parenthesized_expression "((ulong)e.X_add_number < 8)" ( (binary_expression "(ulong)e.X_add_number < 8" (cast_expression "(ulong)e.X_add_number" ( (type_descriptor "ulong" type_identifier) ) (field_expression "e.X_add_number" identifier . field_identifier)) < number_literal) )) (goto_statement "goto LAB_00048ad0;" goto statement_identifier ;)) })) }) (else_clause "else {\n    e._16_1_ = 1;\n  }" else (compound_statement "{\n    e._16_1_ = 1;\n  }" { (expression_statement "e._16_1_ = 1;" (assignment_expression "e._16_1_ = 1" (field_expression "e._16_1_" identifier . field_identifier) = number_literal) ;) }))) (expression_statement "format = (char *)dcgettext(0,"Operand %d to .%s must be a writable register",5);" (assignment_expression "format = (char *)dcgettext(0,"Operand %d to .%s must be a writable register",5)" identifier = (cast_expression "(char *)dcgettext(0,"Operand %d to .%s must be a writable register",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"Operand %d to .%s must be a writable register",5)" identifier (argument_list "(0,"Operand %d to .%s must be a writable register",5)" ( number_literal , (string_literal ""Operand %d to .%s must be a writable register"" " string_content ") , number_literal ))))) ;) (expression_statement "as_bad(format,pred + 2,po);" (call_expression "as_bad(format,pred + 2,po)" identifier (argument_list "(format,pred + 2,po)" ( identifier , (binary_expression "pred + 2" identifier + number_literal) , identifier ))) ;) (expression_statement "local_3e = 0;" (assignment_expression "local_3e = 0" identifier = number_literal) ;) (expression_statement "e.X_add_number._0_4_ = 0;" (assignment_expression "e.X_add_number._0_4_ = 0" (field_expression "e.X_add_number._0_4_" (field_expression "e.X_add_number" identifier . field_identifier) . field_identifier) = number_literal) ;) (labeled_statement "LAB_00048ad0:\n  uVar1 = qp;" statement_identifier : (expression_statement "uVar1 = qp;" (assignment_expression "uVar1 = qp" identifier = identifier) ;)) (expression_statement "ptr = alloc_record((-(uint)(qp == 0) & 0xfffffffd) + spill_reg_p);" (assignment_expression "ptr = alloc_record((-(uint)(qp == 0) & 0xfffffffd) + spill_reg_p)" identifier = (call_expression "alloc_record((-(uint)(qp == 0) & 0xfffffffd) + spill_reg_p)" identifier (argument_list "((-(uint)(qp == 0) & 0xfffffffd) + spill_reg_p)" ( (binary_expression "(-(uint)(qp == 0) & 0xfffffffd) + spill_reg_p" (parenthesized_expression "(-(uint)(qp == 0) & 0xfffffffd)" ( (binary_expression "-(uint)(qp == 0) & 0xfffffffd" (unary_expression "-(uint)(qp == 0)" - (call_expression "(uint)(qp == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(qp == 0)" ( (binary_expression "qp == 0" identifier == number_literal) )))) & number_literal) )) + identifier) )))) ;) (expression_statement "(ptr->r).record.b.ecount = (ushort)reg;" (assignment_expression "(ptr->r).record.b.ecount = (ushort)reg" (field_expression "(ptr->r).record.b.ecount" (field_expression "(ptr->r).record.b" (field_expression "(ptr->r).record" (parenthesized_expression "(ptr->r)" ( (field_expression "ptr->r" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(ushort)reg" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "(ptr->r).record.x.xy = local_3e;" (assignment_expression "(ptr->r).record.x.xy = local_3e" (field_expression "(ptr->r).record.x.xy" (field_expression "(ptr->r).record.x" (field_expression "(ptr->r).record" (parenthesized_expression "(ptr->r)" ( (field_expression "ptr->r" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = identifier) ;) (expression_statement "(ptr->r).record.x.ab = (ushort)ab;" (assignment_expression "(ptr->r).record.x.ab = (ushort)ab" (field_expression "(ptr->r).record.x.ab" (field_expression "(ptr->r).record.x" (field_expression "(ptr->r).record" (parenthesized_expression "(ptr->r)" ( (field_expression "ptr->r" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(ushort)ab" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "(ptr->r).record.p.t = (ulong)e.X_add_number;" (assignment_expression "(ptr->r).record.p.t = (ulong)e.X_add_number" (field_expression "(ptr->r).record.p.t" (field_expression "(ptr->r).record.p" (field_expression "(ptr->r).record" (parenthesized_expression "(ptr->r)" ( (field_expression "ptr->r" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(ulong)e.X_add_number" ( (type_descriptor "ulong" type_identifier) ) (field_expression "e.X_add_number" identifier . field_identifier))) ;) (expression_statement "(ptr->r).record.x.qp = (ushort)uVar1;" (assignment_expression "(ptr->r).record.x.qp = (ushort)uVar1" (field_expression "(ptr->r).record.x.qp" (field_expression "(ptr->r).record.x" (field_expression "(ptr->r).record" (parenthesized_expression "(ptr->r)" ( (field_expression "ptr->r" identifier -> field_identifier) )) . field_identifier) . field_identifier) . field_identifier) = (cast_expression "(ushort)uVar1" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "add_unwind_entry(ptr,iVar2);" (call_expression "add_unwind_entry(ptr,iVar2)" identifier (argument_list "(ptr,iVar2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00048a20(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined2 local_3e;\n  undefined2 local_3c;\n  undefined2 local_38;\n  undefined2 local_34;\n  undefined1 local_30 [8];\n  uint local_28;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x48a29;\n  if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }\n  FUN_0003ea80(pcVar3,param_1 + 1);\n  if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }\n  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  FUN_00029550(uVar2,param_1 + 2,pcVar3);\n  local_3e = 0;\n  local_28 = 0;\nLAB_00048ad0:\n  iVar1 = FUN_00041760();\n  *(undefined2 *)(iVar1 + 0xc) = local_34;\n  *(undefined2 *)(iVar1 + 0x12) = local_3e;\n  *(undefined2 *)(iVar1 + 0x10) = local_38;\n  *(uint *)(iVar1 + 8) = local_28;\n  *(undefined2 *)(iVar1 + 0xe) = local_3c;\n  FUN_00041030();\n  return;\n}\n\n" (function_definition "void FUN_00048a20(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined2 local_3e;\n  undefined2 local_3c;\n  undefined2 local_38;\n  undefined2 local_34;\n  undefined1 local_30 [8];\n  uint local_28;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x48a29;\n  if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }\n  FUN_0003ea80(pcVar3,param_1 + 1);\n  if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }\n  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  FUN_00029550(uVar2,param_1 + 2,pcVar3);\n  local_3e = 0;\n  local_28 = 0;\nLAB_00048ad0:\n  iVar1 = FUN_00041760();\n  *(undefined2 *)(iVar1 + 0xc) = local_34;\n  *(undefined2 *)(iVar1 + 0x12) = local_3e;\n  *(undefined2 *)(iVar1 + 0x10) = local_38;\n  *(uint *)(iVar1 + 8) = local_28;\n  *(undefined2 *)(iVar1 + 0xe) = local_3c;\n  FUN_00041030();\n  return;\n}" primitive_type (function_declarator "FUN_00048a20(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined2 local_3e;\n  undefined2 local_3c;\n  undefined2 local_38;\n  undefined2 local_34;\n  undefined1 local_30 [8];\n  uint local_28;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x48a29;\n  if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }\n  FUN_0003ea80(pcVar3,param_1 + 1);\n  if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }\n  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  FUN_00029550(uVar2,param_1 + 2,pcVar3);\n  local_3e = 0;\n  local_28 = 0;\nLAB_00048ad0:\n  iVar1 = FUN_00041760();\n  *(undefined2 *)(iVar1 + 0xc) = local_34;\n  *(undefined2 *)(iVar1 + 0x12) = local_3e;\n  *(undefined2 *)(iVar1 + 0x10) = local_38;\n  *(uint *)(iVar1 + 8) = local_28;\n  *(undefined2 *)(iVar1 + 0xe) = local_3c;\n  FUN_00041030();\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "undefined2 local_3e;" type_identifier identifier ;) (declaration "undefined2 local_3c;" type_identifier identifier ;) (declaration "undefined2 local_38;" type_identifier identifier ;) (declaration "undefined2 local_34;" type_identifier identifier ;) (declaration "undefined1 local_30 [8];" type_identifier (array_declarator "local_30 [8]" identifier [ number_literal ]) ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "char local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x48a29;" (assignment_expression "uStack_14 = 0x48a29" identifier = number_literal) ;) (if_statement "if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }" if (parenthesized_expression "(param_1 == 0)" ( (binary_expression "param_1 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }" { (expression_statement "iVar1 = FUN_000487e0();" (assignment_expression "iVar1 = FUN_000487e0()" identifier = (call_expression "FUN_000487e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar3 = "spillreg";" (assignment_expression "pcVar3 = "spillreg"" identifier = (string_literal ""spillreg"" " string_content ")) ;) (expression_statement "iVar1 = FUN_00040d30();" (assignment_expression "iVar1 = FUN_00040d30()" identifier = (call_expression "FUN_00040d30()" identifier (argument_list "()" ( )))) ;) (expression_statement "FUN_0001eec0(local_30);" (call_expression "FUN_0001eec0(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }" else (compound_statement "{\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }" { (expression_statement "iVar1 = FUN_000487e0();" (assignment_expression "iVar1 = FUN_000487e0()" identifier = (call_expression "FUN_000487e0()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 == 0) {\n      return;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "pcVar3 = "spillreg.p";" (assignment_expression "pcVar3 = "spillreg.p"" identifier = (string_literal ""spillreg.p"" " string_content ")) ;) (expression_statement "iVar1 = FUN_00041110();" (assignment_expression "iVar1 = FUN_00041110()" identifier = (call_expression "FUN_00041110()" identifier (argument_list "()" ( )))) ;) }))) (expression_statement "FUN_0003ea80(pcVar3,param_1 + 1);" (call_expression "FUN_0003ea80(pcVar3,param_1 + 1)" identifier (argument_list "(pcVar3,param_1 + 1)" ( identifier , (binary_expression "param_1 + 1" identifier + number_literal) ))) ;) (if_statement "if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }" if (parenthesized_expression "(iVar1 == 0x2c)" ( (binary_expression "iVar1 == 0x2c" identifier == number_literal) )) (compound_statement "{\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }" { (expression_statement "FUN_00040d30();" (call_expression "FUN_00040d30()" identifier (argument_list "()" ( ))) ;) (expression_statement "FUN_0001eec0(local_30);" (call_expression "FUN_0001eec0(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;) (if_statement "if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }" if (parenthesized_expression "(local_20 == '\x05')" ( (binary_expression "local_20 == '\x05'" identifier == (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }" { (if_statement "if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }" if (parenthesized_expression "(local_28 - 1 < 0x7f)" ( (binary_expression "local_28 - 1 < 0x7f" (binary_expression "local_28 - 1" identifier - number_literal) < number_literal) )) (compound_statement "{\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }" { (expression_statement "local_3e = 0;" (assignment_expression "local_3e = 0" identifier = number_literal) ;) (goto_statement "goto LAB_00048ad0;" goto statement_identifier ;) })) (if_statement "if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }" if (parenthesized_expression "(local_28 - 0x82 < 0x7e)" ( (binary_expression "local_28 - 0x82 < 0x7e" (binary_expression "local_28 - 0x82" identifier - number_literal) < number_literal) )) (compound_statement "{\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }" { (expression_statement "local_28 = local_28 - 0x80;" (assignment_expression "local_28 = local_28 - 0x80" identifier = (binary_expression "local_28 - 0x80" identifier - number_literal)) ;) (expression_statement "local_3e = 1;" (assignment_expression "local_3e = 1" identifier = number_literal) ;) (goto_statement "goto LAB_00048ad0;" goto statement_identifier ;) })) (expression_statement "local_28 = local_28 - 0x248;" (assignment_expression "local_28 = local_28 - 0x248" identifier = (binary_expression "local_28 - 0x248" identifier - number_literal)) ;) (expression_statement "local_3e = 2;" (assignment_expression "local_3e = 2" identifier = number_literal) ;) (if_statement "if (local_28 < 8) goto LAB_00048ad0;" if (parenthesized_expression "(local_28 < 8)" ( (binary_expression "local_28 < 8" identifier < number_literal) )) (goto_statement "goto LAB_00048ad0;" goto statement_identifier ;)) })) }) (else_clause "else {\n    local_20 = '\x01';\n  }" else (compound_statement "{\n    local_20 = '\x01';\n  }" { (expression_statement "local_20 = '\x01';" (assignment_expression "local_20 = '\x01'" identifier = (char_literal "'\x01'" ' escape_sequence ')) ;) }))) (expression_statement "uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);" (assignment_expression "uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5)" identifier = (call_expression "dcgettext(0,"Operand %d to .%s must be a writable register",5)" identifier (argument_list "(0,"Operand %d to .%s must be a writable register",5)" ( number_literal , (string_literal ""Operand %d to .%s must be a writable register"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_00029550(uVar2,param_1 + 2,pcVar3);" (call_expression "FUN_00029550(uVar2,param_1 + 2,pcVar3)" identifier (argument_list "(uVar2,param_1 + 2,pcVar3)" ( identifier , (binary_expression "param_1 + 2" identifier + number_literal) , identifier ))) ;) (expression_statement "local_3e = 0;" (assignment_expression "local_3e = 0" identifier = number_literal) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (labeled_statement "LAB_00048ad0:\n  iVar1 = FUN_00041760();" statement_identifier : (expression_statement "iVar1 = FUN_00041760();" (assignment_expression "iVar1 = FUN_00041760()" identifier = (call_expression "FUN_00041760()" identifier (argument_list "()" ( )))) ;)) (expression_statement "*(undefined2 *)(iVar1 + 0xc) = local_34;" (assignment_expression "*(undefined2 *)(iVar1 + 0xc) = local_34" (pointer_expression "*(undefined2 *)(iVar1 + 0xc)" * (cast_expression "(undefined2 *)(iVar1 + 0xc)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xc)" ( (binary_expression "iVar1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar1 + 0x12) = local_3e;" (assignment_expression "*(undefined2 *)(iVar1 + 0x12) = local_3e" (pointer_expression "*(undefined2 *)(iVar1 + 0x12)" * (cast_expression "(undefined2 *)(iVar1 + 0x12)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x12)" ( (binary_expression "iVar1 + 0x12" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar1 + 0x10) = local_38;" (assignment_expression "*(undefined2 *)(iVar1 + 0x10) = local_38" (pointer_expression "*(undefined2 *)(iVar1 + 0x10)" * (cast_expression "(undefined2 *)(iVar1 + 0x10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(iVar1 + 8) = local_28;" (assignment_expression "*(uint *)(iVar1 + 8) = local_28" (pointer_expression "*(uint *)(iVar1 + 8)" * (cast_expression "(uint *)(iVar1 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined2 *)(iVar1 + 0xe) = local_3c;" (assignment_expression "*(undefined2 *)(iVar1 + 0xe) = local_3c" (pointer_expression "*(undefined2 *)(iVar1 + 0xe)" * (cast_expression "(undefined2 *)(iVar1 + 0xe)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0xe)" ( (binary_expression "iVar1 + 0xe" identifier + number_literal) )))) = identifier) ;) (expression_statement "FUN_00041030();" (call_expression "FUN_00041030()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (goto_statement goto statement_identifier ;)) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;)) (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 * (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })))
(function_definition "void FUN_00048a20(int param_1)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined2 local_3e;\n  undefined2 local_3c;\n  undefined2 local_38;\n  undefined2 local_34;\n  undefined1 local_30 [8];\n  uint local_28;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x48a29;\n  if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }\n  FUN_0003ea80(pcVar3,param_1 + 1);\n  if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }\n  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  FUN_00029550(uVar2,param_1 + 2,pcVar3);\n  local_3e = 0;\n  local_28 = 0;\nLAB_00048ad0:\n  iVar1 = FUN_00041760();\n  *(undefined2 *)(iVar1 + 0xc) = local_34;\n  *(undefined2 *)(iVar1 + 0x12) = local_3e;\n  *(undefined2 *)(iVar1 + 0x10) = local_38;\n  *(uint *)(iVar1 + 8) = local_28;\n  *(undefined2 *)(iVar1 + 0xe) = local_3c;\n  FUN_00041030();\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00048a20(int param_1)" (identifier "FUN_00048a20") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  char *pcVar3;\n  undefined2 local_3e;\n  undefined2 local_3c;\n  undefined2 local_38;\n  undefined2 local_34;\n  undefined1 local_30 [8];\n  uint local_28;\n  char local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x48a29;\n  if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }\n  FUN_0003ea80(pcVar3,param_1 + 1);\n  if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }\n  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);\n  FUN_00029550(uVar2,param_1 + 2,pcVar3);\n  local_3e = 0;\n  local_28 = 0;\nLAB_00048ad0:\n  iVar1 = FUN_00041760();\n  *(undefined2 *)(iVar1 + 0xc) = local_34;\n  *(undefined2 *)(iVar1 + 0x12) = local_3e;\n  *(undefined2 *)(iVar1 + 0x10) = local_38;\n  *(uint *)(iVar1 + 8) = local_28;\n  *(undefined2 *)(iVar1 + 0xe) = local_3c;\n  FUN_00041030();\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "undefined2 local_3e;" (type_identifier "undefined2") (identifier "local_3e") (; ";")) (declaration "undefined2 local_3c;" (type_identifier "undefined2") (identifier "local_3c") (; ";")) (declaration "undefined2 local_38;" (type_identifier "undefined2") (identifier "local_38") (; ";")) (declaration "undefined2 local_34;" (type_identifier "undefined2") (identifier "local_34") (; ";")) (declaration "undefined1 local_30 [8];" (type_identifier "undefined1") (array_declarator "local_30 [8]" (identifier "local_30") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (declaration "char local_20;" (primitive_type "char") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x48a29;" (assignment_expression "uStack_14 = 0x48a29" (identifier "uStack_14") (= "=") (number_literal "0x48a29")) (; ";")) (if_statement "if (param_1 == 0) {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }\n  else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }" (if "if") (parenthesized_expression "(param_1 == 0)" (( "(") (binary_expression "param_1 == 0" (identifier "param_1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg";\n    iVar1 = FUN_00040d30();\n    FUN_0001eec0(local_30);\n    local_3c = 0;\n  }" ({ "{") (expression_statement "iVar1 = FUN_000487e0();" (assignment_expression "iVar1 = FUN_000487e0()" (identifier "iVar1") (= "=") (call_expression "FUN_000487e0()" (identifier "FUN_000487e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar3 = "spillreg";" (assignment_expression "pcVar3 = "spillreg"" (identifier "pcVar3") (= "=") (string_literal ""spillreg"" (" """) (string_content "spillreg") (" """))) (; ";")) (expression_statement "iVar1 = FUN_00040d30();" (assignment_expression "iVar1 = FUN_00040d30()" (identifier "iVar1") (= "=") (call_expression "FUN_00040d30()" (identifier "FUN_00040d30") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "FUN_0001eec0(local_30);" (call_expression "FUN_0001eec0(local_30)" (identifier "FUN_0001eec0") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }" (else "else") (compound_statement "{\n    iVar1 = FUN_000487e0();\n    if (iVar1 == 0) {\n      return;\n    }\n    pcVar3 = "spillreg.p";\n    iVar1 = FUN_00041110();\n  }" ({ "{") (expression_statement "iVar1 = FUN_000487e0();" (assignment_expression "iVar1 = FUN_000487e0()" (identifier "iVar1") (= "=") (call_expression "FUN_000487e0()" (identifier "FUN_000487e0") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "pcVar3 = "spillreg.p";" (assignment_expression "pcVar3 = "spillreg.p"" (identifier "pcVar3") (= "=") (string_literal ""spillreg.p"" (" """) (string_content "spillreg.p") (" """))) (; ";")) (expression_statement "iVar1 = FUN_00041110();" (assignment_expression "iVar1 = FUN_00041110()" (identifier "iVar1") (= "=") (call_expression "FUN_00041110()" (identifier "FUN_00041110") (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")))) (expression_statement "FUN_0003ea80(pcVar3,param_1 + 1);" (call_expression "FUN_0003ea80(pcVar3,param_1 + 1)" (identifier "FUN_0003ea80") (argument_list "(pcVar3,param_1 + 1)" (( "(") (identifier "pcVar3") (, ",") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (if_statement "if (iVar1 == 0x2c) {\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }\n  else {\n    local_20 = '\x01';\n  }" (if "if") (parenthesized_expression "(iVar1 == 0x2c)" (( "(") (binary_expression "iVar1 == 0x2c" (identifier "iVar1") (== "==") (number_literal "0x2c")) () ")")) (compound_statement "{\n    FUN_00040d30();\n    FUN_0001eec0(local_30);\n    if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }\n  }" ({ "{") (expression_statement "FUN_00040d30();" (call_expression "FUN_00040d30()" (identifier "FUN_00040d30") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "FUN_0001eec0(local_30);" (call_expression "FUN_0001eec0(local_30)" (identifier "FUN_0001eec0") (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (if_statement "if (local_20 == '\x05') {\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }" (if "if") (parenthesized_expression "(local_20 == '\x05')" (( "(") (binary_expression "local_20 == '\x05'" (identifier "local_20") (== "==") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) () ")")) (compound_statement "{\n      if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }\n      if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }\n      local_28 = local_28 - 0x248;\n      local_3e = 2;\n      if (local_28 < 8) goto LAB_00048ad0;\n    }" ({ "{") (if_statement "if (local_28 - 1 < 0x7f) {\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }" (if "if") (parenthesized_expression "(local_28 - 1 < 0x7f)" (( "(") (binary_expression "local_28 - 1 < 0x7f" (binary_expression "local_28 - 1" (identifier "local_28") (- "-") (number_literal "1")) (< "<") (number_literal "0x7f")) () ")")) (compound_statement "{\n        local_3e = 0;\n        goto LAB_00048ad0;\n      }" ({ "{") (expression_statement "local_3e = 0;" (assignment_expression "local_3e = 0" (identifier "local_3e") (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_00048ad0;" (goto "goto") (statement_identifier "LAB_00048ad0") (; ";")) (} "}"))) (if_statement "if (local_28 - 0x82 < 0x7e) {\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }" (if "if") (parenthesized_expression "(local_28 - 0x82 < 0x7e)" (( "(") (binary_expression "local_28 - 0x82 < 0x7e" (binary_expression "local_28 - 0x82" (identifier "local_28") (- "-") (number_literal "0x82")) (< "<") (number_literal "0x7e")) () ")")) (compound_statement "{\n        local_28 = local_28 - 0x80;\n        local_3e = 1;\n        goto LAB_00048ad0;\n      }" ({ "{") (expression_statement "local_28 = local_28 - 0x80;" (assignment_expression "local_28 = local_28 - 0x80" (identifier "local_28") (= "=") (binary_expression "local_28 - 0x80" (identifier "local_28") (- "-") (number_literal "0x80"))) (; ";")) (expression_statement "local_3e = 1;" (assignment_expression "local_3e = 1" (identifier "local_3e") (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00048ad0;" (goto "goto") (statement_identifier "LAB_00048ad0") (; ";")) (} "}"))) (expression_statement "local_28 = local_28 - 0x248;" (assignment_expression "local_28 = local_28 - 0x248" (identifier "local_28") (= "=") (binary_expression "local_28 - 0x248" (identifier "local_28") (- "-") (number_literal "0x248"))) (; ";")) (expression_statement "local_3e = 2;" (assignment_expression "local_3e = 2" (identifier "local_3e") (= "=") (number_literal "2")) (; ";")) (if_statement "if (local_28 < 8) goto LAB_00048ad0;" (if "if") (parenthesized_expression "(local_28 < 8)" (( "(") (binary_expression "local_28 < 8" (identifier "local_28") (< "<") (number_literal "8")) () ")")) (goto_statement "goto LAB_00048ad0;" (goto "goto") (statement_identifier "LAB_00048ad0") (; ";"))) (} "}"))) (} "}")) (else_clause "else {\n    local_20 = '\x01';\n  }" (else "else") (compound_statement "{\n    local_20 = '\x01';\n  }" ({ "{") (expression_statement "local_20 = '\x01';" (assignment_expression "local_20 = '\x01'" (identifier "local_20") (= "=") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) (; ";")) (} "}")))) (expression_statement "uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);" (assignment_expression "uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5)" (identifier "uVar2") (= "=") (call_expression "dcgettext(0,"Operand %d to .%s must be a writable register",5)" (identifier "dcgettext") (argument_list "(0,"Operand %d to .%s must be a writable register",5)" (( "(") (number_literal "0") (, ",") (string_literal ""Operand %d to .%s must be a writable register"" (" """) (string_content "Operand %d to .%s must be a writable register") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_00029550(uVar2,param_1 + 2,pcVar3);" (call_expression "FUN_00029550(uVar2,param_1 + 2,pcVar3)" (identifier "FUN_00029550") (argument_list "(uVar2,param_1 + 2,pcVar3)" (( "(") (identifier "uVar2") (, ",") (binary_expression "param_1 + 2" (identifier "param_1") (+ "+") (number_literal "2")) (, ",") (identifier "pcVar3") () ")"))) (; ";")) (expression_statement "local_3e = 0;" (assignment_expression "local_3e = 0" (identifier "local_3e") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00048ad0:\n  iVar1 = FUN_00041760();" (statement_identifier "LAB_00048ad0") (: ":") (expression_statement "iVar1 = FUN_00041760();" (assignment_expression "iVar1 = FUN_00041760()" (identifier "iVar1") (= "=") (call_expression "FUN_00041760()" (identifier "FUN_00041760") (argument_list "()" (( "(") () ")")))) (; ";"))) (expression_statement "*(undefined2 *)(iVar1 + 0xc) = local_34;" (assignment_expression "*(undefined2 *)(iVar1 + 0xc) = local_34" (pointer_expression "*(undefined2 *)(iVar1 + 0xc)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 0xc)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xc)" (( "(") (binary_expression "iVar1 + 0xc" (identifier "iVar1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "local_34")) (; ";")) (expression_statement "*(undefined2 *)(iVar1 + 0x12) = local_3e;" (assignment_expression "*(undefined2 *)(iVar1 + 0x12) = local_3e" (pointer_expression "*(undefined2 *)(iVar1 + 0x12)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 0x12)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x12)" (( "(") (binary_expression "iVar1 + 0x12" (identifier "iVar1") (+ "+") (number_literal "0x12")) () ")")))) (= "=") (identifier "local_3e")) (; ";")) (expression_statement "*(undefined2 *)(iVar1 + 0x10) = local_38;" (assignment_expression "*(undefined2 *)(iVar1 + 0x10) = local_38" (pointer_expression "*(undefined2 *)(iVar1 + 0x10)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 0x10)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "local_38")) (; ";")) (expression_statement "*(uint *)(iVar1 + 8) = local_28;" (assignment_expression "*(uint *)(iVar1 + 8) = local_28" (pointer_expression "*(uint *)(iVar1 + 8)" (* "*") (cast_expression "(uint *)(iVar1 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8)" (( "(") (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (expression_statement "*(undefined2 *)(iVar1 + 0xe) = local_3c;" (assignment_expression "*(undefined2 *)(iVar1 + 0xe) = local_3c" (pointer_expression "*(undefined2 *)(iVar1 + 0xe)" (* "*") (cast_expression "(undefined2 *)(iVar1 + 0xe)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0xe)" (( "(") (binary_expression "iVar1 + 0xe" (identifier "iVar1") (+ "+") (number_literal "0xe")) () ")")))) (= "=") (identifier "local_3c")) (; ";")) (expression_statement "FUN_00041030();" (call_expression "FUN_00041030()" (identifier "FUN_00041030") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(int var_1)

{
  type_1 uVar1;
  int var_3;
  char *format;
  type_2 *ptr;
  char *po;
  type_3 local_3e;
  type_1 var_11;
  type_1 ab;
  type_1 reg;
  type_4 e;
  
  if (var_1 == 0) {
    var_3 = var_2("spillreg");
    if (var_3 == 0) {
      return;
    }
    po = "spillreg";
    var_3 = var_4(&e,0x2c);
    var_5(&e);
    var_11 = 0;
  }
  else {
    var_3 = var_2("spillreg.p");
    if (var_3 == 0) {
      return;
    }
    po = "spillreg.p";
    var_3 = var_6(&e,&var_11,"spillreg.p");
  }
  var_7(&e,&ab,&reg,po,var_1 + 1);
  if (var_3 == 0x2c) {
    var_3 = var_4(&e,0x2c);
    var_5(&e);
    if (e._16_1_ == '\x05') {
      if ((type_5)e.X_add_number - 1 < 0x7f) {
        local_3e = 0;
        goto LAB_00048ad0;
      }
      if ((type_5)e.X_add_number - 0x82 < 0x7e) {
        e.X_add_number._0_4_ = (type_5)e.X_add_number - 0x80;
        local_3e = 1;
        goto LAB_00048ad0;
      }
      e.X_add_number._0_4_ = (type_5)e.X_add_number - 0x248;
      local_3e = 2;
      if ((type_5)e.X_add_number < 8) goto LAB_00048ad0;
    }
  }
  else {
    e._16_1_ = 1;
  }
  format = (char *)var_8(0,"Operand %d to .%s must be a writable register",5);
  var_9(format,var_1 + 2,po);
  local_3e = 0;
  e.X_add_number._0_4_ = 0;
LAB_00048ad0:
  uVar1 = var_11;
  ptr = var_10((-(type_1)(var_11 == 0) & 0xfffffffd) + var_12);
  (ptr->r).record.b.ecount = (type_3)reg;
  (ptr->r).record.x.xy = local_3e;
  (ptr->r).record.x.ab = (type_3)ab;
  (ptr->r).record.p.t = (type_5)e.X_add_number;
  (ptr->r).record.x.var_11 = (type_3)uVar1;
  var_13(ptr,var_3);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (goto_statement label: (statement_identifier)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list))))) (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: (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: (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 (call_expression function: (identifier) arguments: (argument_list))) (return_statement))))

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

void MASKED(int param_1)

{
  int iVar1;
  undefined4 uVar2;
  char *pcVar3;
  undefined2 local_3e;
  undefined2 local_3c;
  undefined2 local_38;
  undefined2 local_34;
  undefined1 local_30 [8];
  uint local_28;
  char local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x48a29;
  if (param_1 == 0) {
    iVar1 = FUN_000487e0();
    if (iVar1 == 0) {
      return;
    }
    pcVar3 = "spillreg";
    iVar1 = FUN_00040d30();
    FUN_0001eec0(local_30);
    local_3c = 0;
  }
  else {
    iVar1 = FUN_000487e0();
    if (iVar1 == 0) {
      return;
    }
    pcVar3 = "spillreg.p";
    iVar1 = FUN_00041110();
  }
  FUN_0003ea80(pcVar3,param_1 + 1);
  if (iVar1 == 0x2c) {
    FUN_00040d30();
    FUN_0001eec0(local_30);
    if (local_20 == '\x05') {
      if (local_28 - 1 < 0x7f) {
        local_3e = 0;
        goto LAB_00048ad0;
      }
      if (local_28 - 0x82 < 0x7e) {
        local_28 = local_28 - 0x80;
        local_3e = 1;
        goto LAB_00048ad0;
      }
      local_28 = local_28 - 0x248;
      local_3e = 2;
      if (local_28 < 8) goto LAB_00048ad0;
    }
  }
  else {
    local_20 = '\x01';
  }
  uVar2 = dcgettext(0,"Operand %d to .%s must be a writable register",5);
  FUN_00029550(uVar2,param_1 + 2,pcVar3);
  local_3e = 0;
  local_28 = 0;
LAB_00048ad0:
  iVar1 = FUN_00041760();
  *(undefined2 *)(iVar1 + 0xc) = local_34;
  *(undefined2 *)(iVar1 + 0x12) = local_3e;
  *(undefined2 *)(iVar1 + 0x10) = local_38;
  *(uint *)(iVar1 + 8) = local_28;
  *(undefined2 *)(iVar1 + 0xe) = local_3c;
  FUN_00041030();
  return;
}

