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

int ecdsa_openssh_fmtkey(void *key,uchar *blob,int len)

{
  int iVar1;
  int iVar2;
  size_t __n;
  int iVar3;
  uchar *puVar4;
  int local_24;
  
  iVar1 = 0;
  if (**(int **)((int)key + 4) == 0) {
    iVar1 = bignum_bitcount((Bignum_conflict)(*(int **)((int)key + 4))[4]);
    iVar2 = iVar1 + 7;
    if (iVar1 + 7 < 0) {
      iVar2 = iVar1 + 0xe;
    }
    iVar2 = iVar2 >> 3;
    __n = strlen(*(char **)(*(int *)((int)key + 4) + 4));
    local_24 = __n + 9;
    iVar1 = ssh2_bignum_length(*(Bignum_conflict *)((int)key + 0x18));
    iVar1 = iVar1 + local_24 + iVar2 * 2;
    if (iVar1 <= len) {
      *(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;
      memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n);
      iVar1 = iVar2 * 2 + 1;
      blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18);
      blob[__n + 6] = (uchar)((uint)iVar1 >> 8);
      blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10);
      blob[__n + 7] = (char)iVar2 * '\x02' + '\x01';
      blob[__n + 8] = '\x04';
      if (iVar2 != 0) {
        iVar1 = iVar2 + -1;
        puVar4 = blob + local_24;
        do {
          iVar3 = iVar1 + -1;
          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);
          *puVar4 = (uchar)iVar1;
          iVar1 = iVar3;
          puVar4 = puVar4 + 1;
        } while (iVar3 != -1);
        local_24 = iVar2 + 9 + __n;
        iVar1 = iVar2 + -1;
        puVar4 = blob + local_24;
        do {
          iVar3 = iVar1 + -1;
          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);
          *puVar4 = (uchar)iVar1;
          iVar1 = iVar3;
          puVar4 = puVar4 + 1;
        } while (iVar3 != -1);
        local_24 = iVar2 + local_24;
      }
      iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18));
      iVar2 = iVar1 + 8;
      if (iVar1 + 8 < 0) {
        iVar2 = iVar1 + 0xf;
      }
      iVar3 = iVar2 >> 3;
      blob[local_24] = (uchar)(iVar2 >> 0x1b);
      blob[local_24 + 2] = (uchar)(iVar2 >> 0xb);
      iVar1 = local_24 + 4;
      blob[local_24 + 1] = (uchar)(iVar2 >> 0x13);
      blob[local_24 + 3] = (uchar)iVar3;
      if (iVar3 != 0) {
        puVar4 = blob + iVar1;
        iVar1 = iVar3 + -1;
        do {
          iVar2 = iVar1 + -1;
          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);
          *puVar4 = (uchar)iVar1;
          puVar4 = puVar4 + 1;
          iVar1 = iVar2;
        } while (iVar2 != -1);
        return iVar3 + 4 + local_24;
      }
    }
  }
  return iVar1;
}



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

int FUN_00028830(int param_1,uint *param_2,int param_3)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  size_t __n;
  int iVar4;
  undefined1 *puVar5;
  int local_24;
  
  iVar2 = 0;
  if (**(int **)(param_1 + 4) == 0) {
    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);
    iVar3 = iVar2 + 7;
    if (iVar2 + 7 < 0) {
      iVar3 = iVar2 + 0xe;
    }
    iVar3 = iVar3 >> 3;
    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));
    local_24 = __n + 9;
    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));
    iVar2 = iVar2 + local_24 + iVar3 * 2;
    if (iVar2 <= param_3) {
      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;
      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);
      iVar2 = iVar3 * 2 + 1;
      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);
      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);
      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);
      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';
      *(undefined1 *)((int)param_2 + __n + 8) = 4;
      if (iVar3 != 0) {
        iVar2 = iVar3 + -1;
        puVar5 = (undefined1 *)(local_24 + (int)param_2);
        do {
          iVar4 = iVar2 + -1;
          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);
          *puVar5 = uVar1;
          iVar2 = iVar4;
          puVar5 = puVar5 + 1;
        } while (iVar4 != -1);
        local_24 = iVar3 + 9 + __n;
        iVar2 = iVar3 + -1;
        puVar5 = (undefined1 *)((int)param_2 + local_24);
        do {
          iVar4 = iVar2 + -1;
          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);
          *puVar5 = uVar1;
          iVar2 = iVar4;
          puVar5 = puVar5 + 1;
        } while (iVar4 != -1);
        local_24 = iVar3 + local_24;
      }
      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));
      iVar3 = iVar2 + 8;
      if (iVar2 + 8 < 0) {
        iVar3 = iVar2 + 0xf;
      }
      iVar4 = iVar3 >> 3;
      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);
      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);
      iVar2 = local_24 + 4;
      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);
      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;
      if (iVar4 != 0) {
        puVar5 = (undefined1 *)(iVar2 + (int)param_2);
        iVar2 = iVar4 + -1;
        do {
          iVar3 = iVar2 + -1;
          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);
          *puVar5 = uVar1;
          puVar5 = puVar5 + 1;
          iVar2 = iVar3;
        } while (iVar3 != -1);
        return iVar4 + 4 + local_24;
      }
    }
  }
  return iVar2;
}


PUSH EBP
XOR EAX,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014540
ADD EBX,0x34629
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [EDI + 0x4]
MOV ECX,dword ptr [EDX]
TEST ECX,ECX
JZ 0x00028860
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH dword ptr [EDX + 0x10]
CALL 0x000221a0
POP ECX
LEA EDX,[EAX + 0xe]
ADD EAX,0x7
CMOVS EAX,EDX
SAR EAX,0x3
MOV ESI,EAX
MOV EAX,dword ptr [EDI + 0x4]
PUSH dword ptr [EAX + 0x4]
CALL 0x00012310
POP EBP
LEA EBP,[ESI + ESI*0x1]
LEA EDX,[EAX + 0x9]
MOV dword ptr [ESP + 0x10],EAX
LEA EAX,[EDX + EBP*0x1]
MOV dword ptr [ESP + 0x14],EDX
MOV dword ptr [ESP + 0x18],EAX
PUSH dword ptr [EDI + 0x18]
CALL 0x00022240
ADD EAX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
CMP EAX,dword ptr [ESP + 0x38]
JG 0x00028851
MOV ECX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0x34]
SUB ESP,0x4
MOV EAX,ECX
MOV dword ptr [ESP + 0x8],ECX
BSWAP EAX
MOV dword ptr [EDX],EAX
MOV EAX,EDX
MOV EDX,dword ptr [EDI + 0x4]
ADD EAX,0x4
MOV EDX,dword ptr [EDX + 0x4]
PUSH ECX
PUSH EDX
PUSH EAX
CALL 0x000120f0
LEA EAX,[EBP + 0x1]
MOV ECX,dword ptr [ESP + 0x14]
MOV EBP,EAX
SAR EBP,0x18
MOV EDX,EBP
MOV EBP,dword ptr [ESP + 0x44]
MOV byte ptr [EBP + ECX*0x1 + 0x4],DL
MOV EBP,EAX
SAR EBP,0x10
MOV EDX,EBP
MOV EBP,dword ptr [ESP + 0x44]
MOV byte ptr [EBP + ECX*0x1 + 0x6],AH
LEA EAX,[ESI + ESI*0x1 + 0x1]
MOV byte ptr [EBP + ECX*0x1 + 0x5],DL
MOV byte ptr [EBP + ECX*0x1 + 0x7],AL
MOV byte ptr [EBP + ECX*0x1 + 0x8],0x4
LEA EBP,[ESI + -0x1]
MOV dword ptr [ESP + 0x1c],EBP
ADD ESP,0x10
TEST ESI,ESI
JZ 0x0002898d
MOV ESI,dword ptr [ESP + 0x8]
ADD ESI,dword ptr [ESP + 0x34]
LEA ESI,[ESI]
SUB ESP,0x8
ADD ESI,0x1
PUSH EBP
SUB EBP,0x1
PUSH dword ptr [EDI + 0x8]
CALL 0x00022290
ADD ESP,0x10
MOV byte ptr [ESI + -0x1],AL
CMP EBP,-0x1
JNZ 0x00028928
MOV EAX,dword ptr [ESP + 0x4]
MOV EBP,dword ptr [ESP + 0xc]
MOV ESI,dword ptr [ESP + 0x34]
LEA EAX,[EBP + EAX*0x1 + 0xa]
MOV dword ptr [ESP + 0x4],EAX
ADD ESI,EAX
LEA ESI,[ESI]
NOP
SUB ESP,0x8
ADD ESI,0x1
PUSH EBP
SUB EBP,0x1
PUSH dword ptr [EDI + 0xc]
CALL 0x00022290
ADD ESP,0x10
MOV byte ptr [ESI + -0x1],AL
CMP EBP,-0x1
JNZ 0x00028960
MOV EAX,dword ptr [ESP + 0xc]
MOV ECX,dword ptr [ESP + 0x4]
LEA EAX,[EAX + ECX*0x1 + 0x1]
MOV dword ptr [ESP + 0x8],EAX
SUB ESP,0xc
PUSH dword ptr [EDI + 0x18]
CALL 0x000221a0
ADD ESP,0x10
MOV ESI,dword ptr [ESP + 0x8]
MOV EBP,dword ptr [ESP + 0x34]
LEA EDX,[EAX + 0xf]
ADD EAX,0x8
CMOVS EAX,EDX
MOV ECX,EAX
MOV EDX,EAX
SAR ECX,0x1b
SAR EDX,0x3
MOV byte ptr [EBP + ESI*0x1],CL
MOV ECX,EAX
SAR EAX,0xb
SAR ECX,0x13
MOV byte ptr [EBP + ESI*0x1 + 0x2],AL
LEA EAX,[ESI + 0x4]
MOV byte ptr [EBP + ESI*0x1 + 0x1],CL
MOV byte ptr [EBP + ESI*0x1 + 0x3],DL
LEA ESI,[EDX + -0x1]
MOV dword ptr [ESP + 0x4],ESI
TEST EDX,EDX
JZ 0x00028851
ADD EAX,EBP
MOV EBP,EAX
LEA ESI,[ESI]
SUB ESP,0x8
ADD EBP,0x1
PUSH ESI
SUB ESI,0x1
PUSH dword ptr [EDI + 0x18]
CALL 0x00022290
ADD ESP,0x10
MOV byte ptr [EBP + -0x1],AL
CMP ESI,-0x1
JNZ 0x000289e8
MOV EAX,dword ptr [ESP + 0x4]
MOV ECX,dword ptr [ESP + 0x8]
ADD ESP,0x1c
POP EBX
POP ESI
LEA EAX,[EAX + ECX*0x1 + 0x5]
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint FUN_00028830(int param_1,uint *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  size_t __n;\n  int iVar4;\n  undefined1 *puVar5;\n  int local_24;\n  \n  iVar2 = 0;\n  if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int FUN_00028830(int param_1,uint *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  size_t __n;\n  int iVar4;\n  undefined1 *puVar5;\n  int local_24;\n  \n  iVar2 = 0;\n  if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00028830(int param_1,uint *param_2,int param_3)" identifier (parameter_list "(int param_1,uint *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  size_t __n;\n  int iVar4;\n  undefined1 *puVar5;\n  int local_24;\n  \n  iVar2 = 0;\n  if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }\n  return iVar2;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }" if (parenthesized_expression "(**(int **)(param_1 + 4) == 0)" ( (binary_expression "**(int **)(param_1 + 4) == 0" (pointer_expression "**(int **)(param_1 + 4)" * (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) == number_literal) )) (compound_statement "{\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }" { (expression_statement "iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);" (assignment_expression "iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4])" identifier = (call_expression "FUN_000221a0((*(int **)(param_1 + 4))[4])" identifier (argument_list "((*(int **)(param_1 + 4))[4])" ( (subscript_expression "(*(int **)(param_1 + 4))[4]" (parenthesized_expression "(*(int **)(param_1 + 4))" ( (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )) [ number_literal ]) )))) ;) (expression_statement "iVar3 = iVar2 + 7;" (assignment_expression "iVar3 = iVar2 + 7" identifier = (binary_expression "iVar2 + 7" identifier + number_literal)) ;) (if_statement "if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }" if (parenthesized_expression "(iVar2 + 7 < 0)" ( (binary_expression "iVar2 + 7 < 0" (binary_expression "iVar2 + 7" identifier + number_literal) < number_literal) )) (compound_statement "{\n      iVar3 = iVar2 + 0xe;\n    }" { (expression_statement "iVar3 = iVar2 + 0xe;" (assignment_expression "iVar3 = iVar2 + 0xe" identifier = (binary_expression "iVar2 + 0xe" identifier + number_literal)) ;) })) (expression_statement "iVar3 = iVar3 >> 3;" (assignment_expression "iVar3 = iVar3 >> 3" identifier = (binary_expression "iVar3 >> 3" identifier >> number_literal)) ;) (expression_statement "__n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));" (assignment_expression "__n = strlen(*(char **)(*(int *)(param_1 + 4) + 4))" identifier = (call_expression "strlen(*(char **)(*(int *)(param_1 + 4) + 4))" identifier (argument_list "(*(char **)(*(int *)(param_1 + 4) + 4))" ( (pointer_expression "*(char **)(*(int *)(param_1 + 4) + 4)" * (cast_expression "(char **)(*(int *)(param_1 + 4) + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" ( (binary_expression "*(int *)(param_1 + 4) + 4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) )))) ;) (expression_statement "local_24 = __n + 9;" (assignment_expression "local_24 = __n + 9" identifier = (binary_expression "__n + 9" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));" (assignment_expression "iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18))" identifier = (call_expression "FUN_00022240(*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) )))) ;) (expression_statement "iVar2 = iVar2 + local_24 + iVar3 * 2;" (assignment_expression "iVar2 = iVar2 + local_24 + iVar3 * 2" identifier = (binary_expression "iVar2 + local_24 + iVar3 * 2" (binary_expression "iVar2 + local_24" identifier + identifier) + (binary_expression "iVar3 * 2" identifier * number_literal))) ;) (if_statement "if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }" if (parenthesized_expression "(iVar2 <= param_3)" ( (binary_expression "iVar2 <= param_3" identifier <= identifier) )) (compound_statement "{\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }" { (expression_statement "*param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;" (assignment_expression "*param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18" (pointer_expression "*param_2" * identifier) = (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8" (binary_expression "__n >> 0x18" identifier >> number_literal) | (binary_expression "(__n & 0xff0000) >> 8" (parenthesized_expression "(__n & 0xff0000)" ( (binary_expression "__n & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n & 0xff00) << 8" (parenthesized_expression "(__n & 0xff00)" ( (binary_expression "__n & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n << 0x18" identifier << number_literal))) ;) (expression_statement "memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);" (call_expression "memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n)" identifier (argument_list "(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n)" ( (binary_expression "param_2 + 1" identifier + number_literal) , (pointer_expression "*(void **)(*(int *)(param_1 + 4) + 4)" * (cast_expression "(void **)(*(int *)(param_1 + 4) + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" ( (binary_expression "*(int *)(param_1 + 4) + 4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) , identifier ))) ;) (expression_statement "iVar2 = iVar3 * 2 + 1;" (assignment_expression "iVar2 = iVar3 * 2 + 1" identifier = (binary_expression "iVar3 * 2 + 1" (binary_expression "iVar3 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "*(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);" (assignment_expression "*(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18)" (pointer_expression "*(char *)((int)param_2 + __n + 4)" * (cast_expression "(char *)((int)param_2 + __n + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 4)" ( (binary_expression "(int)param_2 + __n + 4" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)((uint)iVar2 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x18)" ( (binary_expression "(uint)iVar2 >> 0x18" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);" (assignment_expression "*(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8)" (pointer_expression "*(char *)((int)param_2 + __n + 6)" * (cast_expression "(char *)((int)param_2 + __n + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 6)" ( (binary_expression "(int)param_2 + __n + 6" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)((uint)iVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 8)" ( (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);" (assignment_expression "*(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10)" (pointer_expression "*(char *)((int)param_2 + __n + 5)" * (cast_expression "(char *)((int)param_2 + __n + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 5)" ( (binary_expression "(int)param_2 + __n + 5" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)((uint)iVar2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x10)" ( (binary_expression "(uint)iVar2 >> 0x10" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';" (assignment_expression "*(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01'" (pointer_expression "*(char *)((int)param_2 + __n + 7)" * (cast_expression "(char *)((int)param_2 + __n + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 7)" ( (binary_expression "(int)param_2 + __n + 7" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "(char)iVar3 * '\x02' + '\x01'" (binary_expression "(char)iVar3 * '\x02'" (cast_expression "(char)iVar3" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\x02'" ' escape_sequence ')) + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "*(undefined1 *)((int)param_2 + __n + 8) = 4;" (assignment_expression "*(undefined1 *)((int)param_2 + __n + 8) = 4" (pointer_expression "*(undefined1 *)((int)param_2 + __n + 8)" * (cast_expression "(undefined1 *)((int)param_2 + __n + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 8)" ( (binary_expression "(int)param_2 + __n + 8" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }" { (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar5 = (undefined1 *)(local_24 + (int)param_2);" (assignment_expression "puVar5 = (undefined1 *)(local_24 + (int)param_2)" identifier = (cast_expression "(undefined1 *)(local_24 + (int)param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + (int)param_2)" ( (binary_expression "local_24 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);" do (compound_statement "{\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        }" { (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);" (assignment_expression "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2)" identifier = (call_expression "FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) (expression_statement "local_24 = iVar3 + 9 + __n;" (assignment_expression "local_24 = iVar3 + 9 + __n" identifier = (binary_expression "iVar3 + 9 + __n" (binary_expression "iVar3 + 9" identifier + number_literal) + identifier)) ;) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar5 = (undefined1 *)((int)param_2 + local_24);" (assignment_expression "puVar5 = (undefined1 *)((int)param_2 + local_24)" identifier = (cast_expression "(undefined1 *)((int)param_2 + local_24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24)" ( (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);" do (compound_statement "{\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        }" { (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);" (assignment_expression "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2)" identifier = (call_expression "FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) (expression_statement "local_24 = iVar3 + local_24;" (assignment_expression "local_24 = iVar3 + local_24" identifier = (binary_expression "iVar3 + local_24" identifier + identifier)) ;) })) (expression_statement "iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));" (assignment_expression "iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18))" identifier = (call_expression "FUN_000221a0(*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) )))) ;) (expression_statement "iVar3 = iVar2 + 8;" (assignment_expression "iVar3 = iVar2 + 8" identifier = (binary_expression "iVar2 + 8" identifier + number_literal)) ;) (if_statement "if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }" if (parenthesized_expression "(iVar2 + 8 < 0)" ( (binary_expression "iVar2 + 8 < 0" (binary_expression "iVar2 + 8" identifier + number_literal) < number_literal) )) (compound_statement "{\n        iVar3 = iVar2 + 0xf;\n      }" { (expression_statement "iVar3 = iVar2 + 0xf;" (assignment_expression "iVar3 = iVar2 + 0xf" identifier = (binary_expression "iVar2 + 0xf" identifier + number_literal)) ;) })) (expression_statement "iVar4 = iVar3 >> 3;" (assignment_expression "iVar4 = iVar3 >> 3" identifier = (binary_expression "iVar3 >> 3" identifier >> number_literal)) ;) (expression_statement "*(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);" (assignment_expression "*(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b)" (pointer_expression "*(char *)((int)param_2 + local_24)" * (cast_expression "(char *)((int)param_2 + local_24)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24)" ( (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (cast_expression "(char)(iVar3 >> 0x1b)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar3 >> 0x1b)" ( (binary_expression "iVar3 >> 0x1b" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);" (assignment_expression "*(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb)" (pointer_expression "*(char *)((int)param_2 + local_24 + 2)" * (cast_expression "(char *)((int)param_2 + local_24 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24 + 2)" ( (binary_expression "(int)param_2 + local_24 + 2" (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)(iVar3 >> 0xb)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar3 >> 0xb)" ( (binary_expression "iVar3 >> 0xb" identifier >> number_literal) )))) ;) (expression_statement "iVar2 = local_24 + 4;" (assignment_expression "iVar2 = local_24 + 4" identifier = (binary_expression "local_24 + 4" identifier + number_literal)) ;) (expression_statement "*(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);" (assignment_expression "*(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13)" (pointer_expression "*(char *)((int)param_2 + local_24 + 1)" * (cast_expression "(char *)((int)param_2 + local_24 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24 + 1)" ( (binary_expression "(int)param_2 + local_24 + 1" (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)(iVar3 >> 0x13)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar3 >> 0x13)" ( (binary_expression "iVar3 >> 0x13" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + local_24 + 3) = (char)iVar4;" (assignment_expression "*(char *)((int)param_2 + local_24 + 3) = (char)iVar4" (pointer_expression "*(char *)((int)param_2 + local_24 + 3)" * (cast_expression "(char *)((int)param_2 + local_24 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24 + 3)" ( (binary_expression "(int)param_2 + local_24 + 3" (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)iVar4" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }" { (expression_statement "puVar5 = (undefined1 *)(iVar2 + (int)param_2);" (assignment_expression "puVar5 = (undefined1 *)(iVar2 + (int)param_2)" identifier = (cast_expression "(undefined1 *)(iVar2 + (int)param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + (int)param_2)" ( (binary_expression "iVar2 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "iVar2 = iVar4 + -1;" (assignment_expression "iVar2 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (do_statement "do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);" do (compound_statement "{\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        }" { (expression_statement "iVar3 = iVar2 + -1;" (assignment_expression "iVar3 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);" (assignment_expression "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2)" identifier = (call_expression "FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) ;) (return_statement "return iVar4 + 4 + local_24;" return (binary_expression "iVar4 + 4 + local_24" (binary_expression "iVar4 + 4" identifier + number_literal) + identifier) ;) })) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nint ecdsa_openssh_fmtkey(void *key,uchar *blob,int len)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  uchar *puVar4;\n  int local_24;\n  \n  iVar1 = 0;\n  if (**(int **)((int)key + 4) == 0) {\n    iVar1 = bignum_bitcount((Bignum_conflict)(*(int **)((int)key + 4))[4]);\n    iVar2 = iVar1 + 7;\n    if (iVar1 + 7 < 0) {\n      iVar2 = iVar1 + 0xe;\n    }\n    iVar2 = iVar2 >> 3;\n    __n = strlen(*(char **)(*(int *)((int)key + 4) + 4));\n    local_24 = __n + 9;\n    iVar1 = ssh2_bignum_length(*(Bignum_conflict *)((int)key + 0x18));\n    iVar1 = iVar1 + local_24 + iVar2 * 2;\n    if (iVar1 <= len) {\n      *(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n);\n      iVar1 = iVar2 * 2 + 1;\n      blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18);\n      blob[__n + 6] = (uchar)((uint)iVar1 >> 8);\n      blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10);\n      blob[__n + 7] = (char)iVar2 * '\x02' + '\x01';\n      blob[__n + 8] = '\x04';\n      if (iVar2 != 0) {\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + 9 + __n;\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + local_24;\n      }\n      iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18));\n      iVar2 = iVar1 + 8;\n      if (iVar1 + 8 < 0) {\n        iVar2 = iVar1 + 0xf;\n      }\n      iVar3 = iVar2 >> 3;\n      blob[local_24] = (uchar)(iVar2 >> 0x1b);\n      blob[local_24 + 2] = (uchar)(iVar2 >> 0xb);\n      iVar1 = local_24 + 4;\n      blob[local_24 + 1] = (uchar)(iVar2 >> 0x13);\n      blob[local_24 + 3] = (uchar)iVar3;\n      if (iVar3 != 0) {\n        puVar4 = blob + iVar1;\n        iVar1 = iVar3 + -1;\n        do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);\n        return iVar3 + 4 + local_24;\n      }\n    }\n  }\n  return iVar1;\n}\n\n" comment comment (function_definition "int ecdsa_openssh_fmtkey(void *key,uchar *blob,int len)\n\n{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  uchar *puVar4;\n  int local_24;\n  \n  iVar1 = 0;\n  if (**(int **)((int)key + 4) == 0) {\n    iVar1 = bignum_bitcount((Bignum_conflict)(*(int **)((int)key + 4))[4]);\n    iVar2 = iVar1 + 7;\n    if (iVar1 + 7 < 0) {\n      iVar2 = iVar1 + 0xe;\n    }\n    iVar2 = iVar2 >> 3;\n    __n = strlen(*(char **)(*(int *)((int)key + 4) + 4));\n    local_24 = __n + 9;\n    iVar1 = ssh2_bignum_length(*(Bignum_conflict *)((int)key + 0x18));\n    iVar1 = iVar1 + local_24 + iVar2 * 2;\n    if (iVar1 <= len) {\n      *(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n);\n      iVar1 = iVar2 * 2 + 1;\n      blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18);\n      blob[__n + 6] = (uchar)((uint)iVar1 >> 8);\n      blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10);\n      blob[__n + 7] = (char)iVar2 * '\x02' + '\x01';\n      blob[__n + 8] = '\x04';\n      if (iVar2 != 0) {\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + 9 + __n;\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + local_24;\n      }\n      iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18));\n      iVar2 = iVar1 + 8;\n      if (iVar1 + 8 < 0) {\n        iVar2 = iVar1 + 0xf;\n      }\n      iVar3 = iVar2 >> 3;\n      blob[local_24] = (uchar)(iVar2 >> 0x1b);\n      blob[local_24 + 2] = (uchar)(iVar2 >> 0xb);\n      iVar1 = local_24 + 4;\n      blob[local_24 + 1] = (uchar)(iVar2 >> 0x13);\n      blob[local_24 + 3] = (uchar)iVar3;\n      if (iVar3 != 0) {\n        puVar4 = blob + iVar1;\n        iVar1 = iVar3 + -1;\n        do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);\n        return iVar3 + 4 + local_24;\n      }\n    }\n  }\n  return iVar1;\n}" primitive_type (function_declarator "ecdsa_openssh_fmtkey(void *key,uchar *blob,int len)" identifier (parameter_list "(void *key,uchar *blob,int len)" ( (parameter_declaration "void *key" primitive_type (pointer_declarator "*key" * identifier)) , (parameter_declaration "uchar *blob" type_identifier (pointer_declarator "*blob" * identifier)) , (parameter_declaration "int len" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  size_t __n;\n  int iVar3;\n  uchar *puVar4;\n  int local_24;\n  \n  iVar1 = 0;\n  if (**(int **)((int)key + 4) == 0) {\n    iVar1 = bignum_bitcount((Bignum_conflict)(*(int **)((int)key + 4))[4]);\n    iVar2 = iVar1 + 7;\n    if (iVar1 + 7 < 0) {\n      iVar2 = iVar1 + 0xe;\n    }\n    iVar2 = iVar2 >> 3;\n    __n = strlen(*(char **)(*(int *)((int)key + 4) + 4));\n    local_24 = __n + 9;\n    iVar1 = ssh2_bignum_length(*(Bignum_conflict *)((int)key + 0x18));\n    iVar1 = iVar1 + local_24 + iVar2 * 2;\n    if (iVar1 <= len) {\n      *(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n);\n      iVar1 = iVar2 * 2 + 1;\n      blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18);\n      blob[__n + 6] = (uchar)((uint)iVar1 >> 8);\n      blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10);\n      blob[__n + 7] = (char)iVar2 * '\x02' + '\x01';\n      blob[__n + 8] = '\x04';\n      if (iVar2 != 0) {\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + 9 + __n;\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + local_24;\n      }\n      iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18));\n      iVar2 = iVar1 + 8;\n      if (iVar1 + 8 < 0) {\n        iVar2 = iVar1 + 0xf;\n      }\n      iVar3 = iVar2 >> 3;\n      blob[local_24] = (uchar)(iVar2 >> 0x1b);\n      blob[local_24 + 2] = (uchar)(iVar2 >> 0xb);\n      iVar1 = local_24 + 4;\n      blob[local_24 + 1] = (uchar)(iVar2 >> 0x13);\n      blob[local_24 + 3] = (uchar)iVar3;\n      if (iVar3 != 0) {\n        puVar4 = blob + iVar1;\n        iVar1 = iVar3 + -1;\n        do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);\n        return iVar3 + 4 + local_24;\n      }\n    }\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uchar *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if (**(int **)((int)key + 4) == 0) {\n    iVar1 = bignum_bitcount((Bignum_conflict)(*(int **)((int)key + 4))[4]);\n    iVar2 = iVar1 + 7;\n    if (iVar1 + 7 < 0) {\n      iVar2 = iVar1 + 0xe;\n    }\n    iVar2 = iVar2 >> 3;\n    __n = strlen(*(char **)(*(int *)((int)key + 4) + 4));\n    local_24 = __n + 9;\n    iVar1 = ssh2_bignum_length(*(Bignum_conflict *)((int)key + 0x18));\n    iVar1 = iVar1 + local_24 + iVar2 * 2;\n    if (iVar1 <= len) {\n      *(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n);\n      iVar1 = iVar2 * 2 + 1;\n      blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18);\n      blob[__n + 6] = (uchar)((uint)iVar1 >> 8);\n      blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10);\n      blob[__n + 7] = (char)iVar2 * '\x02' + '\x01';\n      blob[__n + 8] = '\x04';\n      if (iVar2 != 0) {\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + 9 + __n;\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + local_24;\n      }\n      iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18));\n      iVar2 = iVar1 + 8;\n      if (iVar1 + 8 < 0) {\n        iVar2 = iVar1 + 0xf;\n      }\n      iVar3 = iVar2 >> 3;\n      blob[local_24] = (uchar)(iVar2 >> 0x1b);\n      blob[local_24 + 2] = (uchar)(iVar2 >> 0xb);\n      iVar1 = local_24 + 4;\n      blob[local_24 + 1] = (uchar)(iVar2 >> 0x13);\n      blob[local_24 + 3] = (uchar)iVar3;\n      if (iVar3 != 0) {\n        puVar4 = blob + iVar1;\n        iVar1 = iVar3 + -1;\n        do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);\n        return iVar3 + 4 + local_24;\n      }\n    }\n  }" if (parenthesized_expression "(**(int **)((int)key + 4) == 0)" ( (binary_expression "**(int **)((int)key + 4) == 0" (pointer_expression "**(int **)((int)key + 4)" * (pointer_expression "*(int **)((int)key + 4)" * (cast_expression "(int **)((int)key + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)key + 4)" ( (binary_expression "(int)key + 4" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) == number_literal) )) (compound_statement "{\n    iVar1 = bignum_bitcount((Bignum_conflict)(*(int **)((int)key + 4))[4]);\n    iVar2 = iVar1 + 7;\n    if (iVar1 + 7 < 0) {\n      iVar2 = iVar1 + 0xe;\n    }\n    iVar2 = iVar2 >> 3;\n    __n = strlen(*(char **)(*(int *)((int)key + 4) + 4));\n    local_24 = __n + 9;\n    iVar1 = ssh2_bignum_length(*(Bignum_conflict *)((int)key + 0x18));\n    iVar1 = iVar1 + local_24 + iVar2 * 2;\n    if (iVar1 <= len) {\n      *(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n);\n      iVar1 = iVar2 * 2 + 1;\n      blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18);\n      blob[__n + 6] = (uchar)((uint)iVar1 >> 8);\n      blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10);\n      blob[__n + 7] = (char)iVar2 * '\x02' + '\x01';\n      blob[__n + 8] = '\x04';\n      if (iVar2 != 0) {\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + 9 + __n;\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + local_24;\n      }\n      iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18));\n      iVar2 = iVar1 + 8;\n      if (iVar1 + 8 < 0) {\n        iVar2 = iVar1 + 0xf;\n      }\n      iVar3 = iVar2 >> 3;\n      blob[local_24] = (uchar)(iVar2 >> 0x1b);\n      blob[local_24 + 2] = (uchar)(iVar2 >> 0xb);\n      iVar1 = local_24 + 4;\n      blob[local_24 + 1] = (uchar)(iVar2 >> 0x13);\n      blob[local_24 + 3] = (uchar)iVar3;\n      if (iVar3 != 0) {\n        puVar4 = blob + iVar1;\n        iVar1 = iVar3 + -1;\n        do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);\n        return iVar3 + 4 + local_24;\n      }\n    }\n  }" { (expression_statement "iVar1 = bignum_bitcount((Bignum_conflict)(*(int **)((int)key + 4))[4]);" (assignment_expression "iVar1 = bignum_bitcount((Bignum_conflict)(*(int **)((int)key + 4))[4])" identifier = (call_expression "bignum_bitcount((Bignum_conflict)(*(int **)((int)key + 4))[4])" identifier (argument_list "((Bignum_conflict)(*(int **)((int)key + 4))[4])" ( (subscript_expression "(Bignum_conflict)(*(int **)((int)key + 4))[4]" (call_expression "(Bignum_conflict)(*(int **)((int)key + 4))" (parenthesized_expression "(Bignum_conflict)" ( identifier )) (argument_list "(*(int **)((int)key + 4))" ( (pointer_expression "*(int **)((int)key + 4)" * (cast_expression "(int **)((int)key + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)key + 4)" ( (binary_expression "(int)key + 4" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ))) [ number_literal ]) )))) ;) (expression_statement "iVar2 = iVar1 + 7;" (assignment_expression "iVar2 = iVar1 + 7" identifier = (binary_expression "iVar1 + 7" identifier + number_literal)) ;) (if_statement "if (iVar1 + 7 < 0) {\n      iVar2 = iVar1 + 0xe;\n    }" if (parenthesized_expression "(iVar1 + 7 < 0)" ( (binary_expression "iVar1 + 7 < 0" (binary_expression "iVar1 + 7" identifier + number_literal) < number_literal) )) (compound_statement "{\n      iVar2 = iVar1 + 0xe;\n    }" { (expression_statement "iVar2 = iVar1 + 0xe;" (assignment_expression "iVar2 = iVar1 + 0xe" identifier = (binary_expression "iVar1 + 0xe" identifier + number_literal)) ;) })) (expression_statement "iVar2 = iVar2 >> 3;" (assignment_expression "iVar2 = iVar2 >> 3" identifier = (binary_expression "iVar2 >> 3" identifier >> number_literal)) ;) (expression_statement "__n = strlen(*(char **)(*(int *)((int)key + 4) + 4));" (assignment_expression "__n = strlen(*(char **)(*(int *)((int)key + 4) + 4))" identifier = (call_expression "strlen(*(char **)(*(int *)((int)key + 4) + 4))" identifier (argument_list "(*(char **)(*(int *)((int)key + 4) + 4))" ( (pointer_expression "*(char **)(*(int *)((int)key + 4) + 4)" * (cast_expression "(char **)(*(int *)((int)key + 4) + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)key + 4) + 4)" ( (binary_expression "*(int *)((int)key + 4) + 4" (pointer_expression "*(int *)((int)key + 4)" * (cast_expression "(int *)((int)key + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 4)" ( (binary_expression "(int)key + 4" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) )))) ;) (expression_statement "local_24 = __n + 9;" (assignment_expression "local_24 = __n + 9" identifier = (binary_expression "__n + 9" identifier + number_literal)) ;) (expression_statement "iVar1 = ssh2_bignum_length(*(Bignum_conflict *)((int)key + 0x18));" (assignment_expression "iVar1 = ssh2_bignum_length(*(Bignum_conflict *)((int)key + 0x18))" identifier = (call_expression "ssh2_bignum_length(*(Bignum_conflict *)((int)key + 0x18))" identifier (argument_list "(*(Bignum_conflict *)((int)key + 0x18))" ( (pointer_expression "*(Bignum_conflict *)((int)key + 0x18)" * (cast_expression "(Bignum_conflict *)((int)key + 0x18)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 0x18)" ( (binary_expression "(int)key + 0x18" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (expression_statement "iVar1 = iVar1 + local_24 + iVar2 * 2;" (assignment_expression "iVar1 = iVar1 + local_24 + iVar2 * 2" identifier = (binary_expression "iVar1 + local_24 + iVar2 * 2" (binary_expression "iVar1 + local_24" identifier + identifier) + (binary_expression "iVar2 * 2" identifier * number_literal))) ;) (if_statement "if (iVar1 <= len) {\n      *(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n);\n      iVar1 = iVar2 * 2 + 1;\n      blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18);\n      blob[__n + 6] = (uchar)((uint)iVar1 >> 8);\n      blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10);\n      blob[__n + 7] = (char)iVar2 * '\x02' + '\x01';\n      blob[__n + 8] = '\x04';\n      if (iVar2 != 0) {\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + 9 + __n;\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + local_24;\n      }\n      iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18));\n      iVar2 = iVar1 + 8;\n      if (iVar1 + 8 < 0) {\n        iVar2 = iVar1 + 0xf;\n      }\n      iVar3 = iVar2 >> 3;\n      blob[local_24] = (uchar)(iVar2 >> 0x1b);\n      blob[local_24 + 2] = (uchar)(iVar2 >> 0xb);\n      iVar1 = local_24 + 4;\n      blob[local_24 + 1] = (uchar)(iVar2 >> 0x13);\n      blob[local_24 + 3] = (uchar)iVar3;\n      if (iVar3 != 0) {\n        puVar4 = blob + iVar1;\n        iVar1 = iVar3 + -1;\n        do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);\n        return iVar3 + 4 + local_24;\n      }\n    }" if (parenthesized_expression "(iVar1 <= len)" ( (binary_expression "iVar1 <= len" identifier <= identifier) )) (compound_statement "{\n      *(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n);\n      iVar1 = iVar2 * 2 + 1;\n      blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18);\n      blob[__n + 6] = (uchar)((uint)iVar1 >> 8);\n      blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10);\n      blob[__n + 7] = (char)iVar2 * '\x02' + '\x01';\n      blob[__n + 8] = '\x04';\n      if (iVar2 != 0) {\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + 9 + __n;\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + local_24;\n      }\n      iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18));\n      iVar2 = iVar1 + 8;\n      if (iVar1 + 8 < 0) {\n        iVar2 = iVar1 + 0xf;\n      }\n      iVar3 = iVar2 >> 3;\n      blob[local_24] = (uchar)(iVar2 >> 0x1b);\n      blob[local_24 + 2] = (uchar)(iVar2 >> 0xb);\n      iVar1 = local_24 + 4;\n      blob[local_24 + 1] = (uchar)(iVar2 >> 0x13);\n      blob[local_24 + 3] = (uchar)iVar3;\n      if (iVar3 != 0) {\n        puVar4 = blob + iVar1;\n        iVar1 = iVar3 + -1;\n        do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);\n        return iVar3 + 4 + local_24;\n      }\n    }" { (expression_statement "*(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;" (assignment_expression "*(size_t *)blob = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18" (pointer_expression "*(size_t *)blob" * (cast_expression "(size_t *)blob" ( (type_descriptor "size_t *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) = (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8" (binary_expression "__n >> 0x18" identifier >> number_literal) | (binary_expression "(__n & 0xff0000) >> 8" (parenthesized_expression "(__n & 0xff0000)" ( (binary_expression "__n & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n & 0xff00) << 8" (parenthesized_expression "(__n & 0xff00)" ( (binary_expression "__n & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n << 0x18" identifier << number_literal))) ;) (expression_statement "memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n);" (call_expression "memcpy(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n)" identifier (argument_list "(blob + 4,*(void **)(*(int *)((int)key + 4) + 4),__n)" ( (binary_expression "blob + 4" identifier + number_literal) , (pointer_expression "*(void **)(*(int *)((int)key + 4) + 4)" * (cast_expression "(void **)(*(int *)((int)key + 4) + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)key + 4) + 4)" ( (binary_expression "*(int *)((int)key + 4) + 4" (pointer_expression "*(int *)((int)key + 4)" * (cast_expression "(int *)((int)key + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 4)" ( (binary_expression "(int)key + 4" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) , identifier ))) ;) (expression_statement "iVar1 = iVar2 * 2 + 1;" (assignment_expression "iVar1 = iVar2 * 2 + 1" identifier = (binary_expression "iVar2 * 2 + 1" (binary_expression "iVar2 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18);" (assignment_expression "blob[__n + 4] = (uchar)((uint)iVar1 >> 0x18)" (subscript_expression "blob[__n + 4]" identifier [ (binary_expression "__n + 4" identifier + number_literal) ]) = (call_expression "(uchar)((uint)iVar1 >> 0x18)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((uint)iVar1 >> 0x18)" ( (binary_expression "(uint)iVar1 >> 0x18" (cast_expression "(uint)iVar1" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "blob[__n + 6] = (uchar)((uint)iVar1 >> 8);" (assignment_expression "blob[__n + 6] = (uchar)((uint)iVar1 >> 8)" (subscript_expression "blob[__n + 6]" identifier [ (binary_expression "__n + 6" identifier + number_literal) ]) = (call_expression "(uchar)((uint)iVar1 >> 8)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((uint)iVar1 >> 8)" ( (binary_expression "(uint)iVar1 >> 8" (cast_expression "(uint)iVar1" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10);" (assignment_expression "blob[__n + 5] = (uchar)((uint)iVar1 >> 0x10)" (subscript_expression "blob[__n + 5]" identifier [ (binary_expression "__n + 5" identifier + number_literal) ]) = (call_expression "(uchar)((uint)iVar1 >> 0x10)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "((uint)iVar1 >> 0x10)" ( (binary_expression "(uint)iVar1 >> 0x10" (cast_expression "(uint)iVar1" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "blob[__n + 7] = (char)iVar2 * '\x02' + '\x01';" (assignment_expression "blob[__n + 7] = (char)iVar2 * '\x02' + '\x01'" (subscript_expression "blob[__n + 7]" identifier [ (binary_expression "__n + 7" identifier + number_literal) ]) = (binary_expression "(char)iVar2 * '\x02' + '\x01'" (binary_expression "(char)iVar2 * '\x02'" (cast_expression "(char)iVar2" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\x02'" ' escape_sequence ')) + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "blob[__n + 8] = '\x04';" (assignment_expression "blob[__n + 8] = '\x04'" (subscript_expression "blob[__n + 8]" identifier [ (binary_expression "__n + 8" identifier + number_literal) ]) = (char_literal "'\x04'" ' escape_sequence ')) ;) (if_statement "if (iVar2 != 0) {\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + 9 + __n;\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + local_24;\n      }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + 9 + __n;\n        iVar1 = iVar2 + -1;\n        puVar4 = blob + local_24;\n        do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);\n        local_24 = iVar2 + local_24;\n      }" { (expression_statement "iVar1 = iVar2 + -1;" (assignment_expression "iVar1 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "puVar4 = blob + local_24;" (assignment_expression "puVar4 = blob + local_24" identifier = (binary_expression "blob + local_24" identifier + identifier)) ;) (do_statement "do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);" do (compound_statement "{\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        }" { (expression_statement "iVar3 = iVar1 + -1;" (assignment_expression "iVar3 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1);" (assignment_expression "iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1)" identifier = (call_expression "bignum_byte(*(Bignum_conflict *)((int)key + 8),iVar1)" identifier (argument_list "(*(Bignum_conflict *)((int)key + 8),iVar1)" ( (pointer_expression "*(Bignum_conflict *)((int)key + 8)" * (cast_expression "(Bignum_conflict *)((int)key + 8)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 8)" ( (binary_expression "(int)key + 8" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (expression_statement "*puVar4 = (uchar)iVar1;" (assignment_expression "*puVar4 = (uchar)iVar1" (pointer_expression "*puVar4" * identifier) = (cast_expression "(uchar)iVar1" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) ;) (expression_statement "local_24 = iVar2 + 9 + __n;" (assignment_expression "local_24 = iVar2 + 9 + __n" identifier = (binary_expression "iVar2 + 9 + __n" (binary_expression "iVar2 + 9" identifier + number_literal) + identifier)) ;) (expression_statement "iVar1 = iVar2 + -1;" (assignment_expression "iVar1 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "puVar4 = blob + local_24;" (assignment_expression "puVar4 = blob + local_24" identifier = (binary_expression "blob + local_24" identifier + identifier)) ;) (do_statement "do {\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        } while (iVar3 != -1);" do (compound_statement "{\n          iVar3 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);\n          *puVar4 = (uchar)iVar1;\n          iVar1 = iVar3;\n          puVar4 = puVar4 + 1;\n        }" { (expression_statement "iVar3 = iVar1 + -1;" (assignment_expression "iVar3 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1);" (assignment_expression "iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1)" identifier = (call_expression "bignum_byte(*(Bignum_conflict *)((int)key + 0xc),iVar1)" identifier (argument_list "(*(Bignum_conflict *)((int)key + 0xc),iVar1)" ( (pointer_expression "*(Bignum_conflict *)((int)key + 0xc)" * (cast_expression "(Bignum_conflict *)((int)key + 0xc)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 0xc)" ( (binary_expression "(int)key + 0xc" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (expression_statement "*puVar4 = (uchar)iVar1;" (assignment_expression "*puVar4 = (uchar)iVar1" (pointer_expression "*puVar4" * identifier) = (cast_expression "(uchar)iVar1" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "iVar1 = iVar3;" (assignment_expression "iVar1 = iVar3" identifier = identifier) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) ;) (expression_statement "local_24 = iVar2 + local_24;" (assignment_expression "local_24 = iVar2 + local_24" identifier = (binary_expression "iVar2 + local_24" identifier + identifier)) ;) })) (expression_statement "iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18));" (assignment_expression "iVar1 = bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18))" identifier = (call_expression "bignum_bitcount(*(Bignum_conflict *)((int)key + 0x18))" identifier (argument_list "(*(Bignum_conflict *)((int)key + 0x18))" ( (pointer_expression "*(Bignum_conflict *)((int)key + 0x18)" * (cast_expression "(Bignum_conflict *)((int)key + 0x18)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 0x18)" ( (binary_expression "(int)key + 0x18" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) )))) ;) (expression_statement "iVar2 = iVar1 + 8;" (assignment_expression "iVar2 = iVar1 + 8" identifier = (binary_expression "iVar1 + 8" identifier + number_literal)) ;) (if_statement "if (iVar1 + 8 < 0) {\n        iVar2 = iVar1 + 0xf;\n      }" if (parenthesized_expression "(iVar1 + 8 < 0)" ( (binary_expression "iVar1 + 8 < 0" (binary_expression "iVar1 + 8" identifier + number_literal) < number_literal) )) (compound_statement "{\n        iVar2 = iVar1 + 0xf;\n      }" { (expression_statement "iVar2 = iVar1 + 0xf;" (assignment_expression "iVar2 = iVar1 + 0xf" identifier = (binary_expression "iVar1 + 0xf" identifier + number_literal)) ;) })) (expression_statement "iVar3 = iVar2 >> 3;" (assignment_expression "iVar3 = iVar2 >> 3" identifier = (binary_expression "iVar2 >> 3" identifier >> number_literal)) ;) (expression_statement "blob[local_24] = (uchar)(iVar2 >> 0x1b);" (assignment_expression "blob[local_24] = (uchar)(iVar2 >> 0x1b)" (subscript_expression "blob[local_24]" identifier [ identifier ]) = (call_expression "(uchar)(iVar2 >> 0x1b)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(iVar2 >> 0x1b)" ( (binary_expression "iVar2 >> 0x1b" identifier >> number_literal) )))) ;) (expression_statement "blob[local_24 + 2] = (uchar)(iVar2 >> 0xb);" (assignment_expression "blob[local_24 + 2] = (uchar)(iVar2 >> 0xb)" (subscript_expression "blob[local_24 + 2]" identifier [ (binary_expression "local_24 + 2" identifier + number_literal) ]) = (call_expression "(uchar)(iVar2 >> 0xb)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(iVar2 >> 0xb)" ( (binary_expression "iVar2 >> 0xb" identifier >> number_literal) )))) ;) (expression_statement "iVar1 = local_24 + 4;" (assignment_expression "iVar1 = local_24 + 4" identifier = (binary_expression "local_24 + 4" identifier + number_literal)) ;) (expression_statement "blob[local_24 + 1] = (uchar)(iVar2 >> 0x13);" (assignment_expression "blob[local_24 + 1] = (uchar)(iVar2 >> 0x13)" (subscript_expression "blob[local_24 + 1]" identifier [ (binary_expression "local_24 + 1" identifier + number_literal) ]) = (call_expression "(uchar)(iVar2 >> 0x13)" (parenthesized_expression "(uchar)" ( identifier )) (argument_list "(iVar2 >> 0x13)" ( (binary_expression "iVar2 >> 0x13" identifier >> number_literal) )))) ;) (expression_statement "blob[local_24 + 3] = (uchar)iVar3;" (assignment_expression "blob[local_24 + 3] = (uchar)iVar3" (subscript_expression "blob[local_24 + 3]" identifier [ (binary_expression "local_24 + 3" identifier + number_literal) ]) = (cast_expression "(uchar)iVar3" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (if_statement "if (iVar3 != 0) {\n        puVar4 = blob + iVar1;\n        iVar1 = iVar3 + -1;\n        do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);\n        return iVar3 + 4 + local_24;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar4 = blob + iVar1;\n        iVar1 = iVar3 + -1;\n        do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);\n        return iVar3 + 4 + local_24;\n      }" { (expression_statement "puVar4 = blob + iVar1;" (assignment_expression "puVar4 = blob + iVar1" identifier = (binary_expression "blob + iVar1" identifier + identifier)) ;) (expression_statement "iVar1 = iVar3 + -1;" (assignment_expression "iVar1 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (do_statement "do {\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        } while (iVar2 != -1);" do (compound_statement "{\n          iVar2 = iVar1 + -1;\n          iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);\n          *puVar4 = (uchar)iVar1;\n          puVar4 = puVar4 + 1;\n          iVar1 = iVar2;\n        }" { (expression_statement "iVar2 = iVar1 + -1;" (assignment_expression "iVar2 = iVar1 + -1" identifier = (binary_expression "iVar1 + -1" identifier + number_literal)) ;) (expression_statement "iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1);" (assignment_expression "iVar1 = bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1)" identifier = (call_expression "bignum_byte(*(Bignum_conflict *)((int)key + 0x18),iVar1)" identifier (argument_list "(*(Bignum_conflict *)((int)key + 0x18),iVar1)" ( (pointer_expression "*(Bignum_conflict *)((int)key + 0x18)" * (cast_expression "(Bignum_conflict *)((int)key + 0x18)" ( (type_descriptor "Bignum_conflict *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)key + 0x18)" ( (binary_expression "(int)key + 0x18" (cast_expression "(int)key" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , identifier )))) ;) (expression_statement "*puVar4 = (uchar)iVar1;" (assignment_expression "*puVar4 = (uchar)iVar1" (pointer_expression "*puVar4" * identifier) = (cast_expression "(uchar)iVar1" ( (type_descriptor "uchar" type_identifier) ) identifier)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar1 = iVar2;" (assignment_expression "iVar1 = iVar2" identifier = identifier) ;) }) while (parenthesized_expression "(iVar2 != -1)" ( (binary_expression "iVar2 != -1" identifier != number_literal) )) ;) (return_statement "return iVar3 + 4 + local_24;" return (binary_expression "iVar3 + 4 + local_24" (binary_expression "iVar3 + 4" identifier + number_literal) + identifier) ;) })) })) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "int FUN_00028830(int param_1,uint *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  size_t __n;\n  int iVar4;\n  undefined1 *puVar5;\n  int local_24;\n  \n  iVar2 = 0;\n  if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int FUN_00028830(int param_1,uint *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  size_t __n;\n  int iVar4;\n  undefined1 *puVar5;\n  int local_24;\n  \n  iVar2 = 0;\n  if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }\n  return iVar2;\n}" primitive_type (function_declarator "FUN_00028830(int param_1,uint *param_2,int param_3)" identifier (parameter_list "(int param_1,uint *param_2,int param_3)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  size_t __n;\n  int iVar4;\n  undefined1 *puVar5;\n  int local_24;\n  \n  iVar2 = 0;\n  if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }\n  return iVar2;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "size_t __n;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined1 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }" if (parenthesized_expression "(**(int **)(param_1 + 4) == 0)" ( (binary_expression "**(int **)(param_1 + 4) == 0" (pointer_expression "**(int **)(param_1 + 4)" * (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) == number_literal) )) (compound_statement "{\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }" { (expression_statement "iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);" (assignment_expression "iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4])" identifier = (call_expression "FUN_000221a0((*(int **)(param_1 + 4))[4])" identifier (argument_list "((*(int **)(param_1 + 4))[4])" ( (subscript_expression "(*(int **)(param_1 + 4))[4]" (parenthesized_expression "(*(int **)(param_1 + 4))" ( (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) )) [ number_literal ]) )))) ;) (expression_statement "iVar3 = iVar2 + 7;" (assignment_expression "iVar3 = iVar2 + 7" identifier = (binary_expression "iVar2 + 7" identifier + number_literal)) ;) (if_statement "if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }" if (parenthesized_expression "(iVar2 + 7 < 0)" ( (binary_expression "iVar2 + 7 < 0" (binary_expression "iVar2 + 7" identifier + number_literal) < number_literal) )) (compound_statement "{\n      iVar3 = iVar2 + 0xe;\n    }" { (expression_statement "iVar3 = iVar2 + 0xe;" (assignment_expression "iVar3 = iVar2 + 0xe" identifier = (binary_expression "iVar2 + 0xe" identifier + number_literal)) ;) })) (expression_statement "iVar3 = iVar3 >> 3;" (assignment_expression "iVar3 = iVar3 >> 3" identifier = (binary_expression "iVar3 >> 3" identifier >> number_literal)) ;) (expression_statement "__n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));" (assignment_expression "__n = strlen(*(char **)(*(int *)(param_1 + 4) + 4))" identifier = (call_expression "strlen(*(char **)(*(int *)(param_1 + 4) + 4))" identifier (argument_list "(*(char **)(*(int *)(param_1 + 4) + 4))" ( (pointer_expression "*(char **)(*(int *)(param_1 + 4) + 4)" * (cast_expression "(char **)(*(int *)(param_1 + 4) + 4)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" ( (binary_expression "*(int *)(param_1 + 4) + 4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) )))) ;) (expression_statement "local_24 = __n + 9;" (assignment_expression "local_24 = __n + 9" identifier = (binary_expression "__n + 9" identifier + number_literal)) ;) (expression_statement "iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));" (assignment_expression "iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18))" identifier = (call_expression "FUN_00022240(*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) )))) ;) (expression_statement "iVar2 = iVar2 + local_24 + iVar3 * 2;" (assignment_expression "iVar2 = iVar2 + local_24 + iVar3 * 2" identifier = (binary_expression "iVar2 + local_24 + iVar3 * 2" (binary_expression "iVar2 + local_24" identifier + identifier) + (binary_expression "iVar3 * 2" identifier * number_literal))) ;) (if_statement "if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }" if (parenthesized_expression "(iVar2 <= param_3)" ( (binary_expression "iVar2 <= param_3" identifier <= identifier) )) (compound_statement "{\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }" { (expression_statement "*param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;" (assignment_expression "*param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18" (pointer_expression "*param_2" * identifier) = (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8" (binary_expression "__n >> 0x18" identifier >> number_literal) | (binary_expression "(__n & 0xff0000) >> 8" (parenthesized_expression "(__n & 0xff0000)" ( (binary_expression "__n & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(__n & 0xff00) << 8" (parenthesized_expression "(__n & 0xff00)" ( (binary_expression "__n & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "__n << 0x18" identifier << number_literal))) ;) (expression_statement "memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);" (call_expression "memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n)" identifier (argument_list "(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n)" ( (binary_expression "param_2 + 1" identifier + number_literal) , (pointer_expression "*(void **)(*(int *)(param_1 + 4) + 4)" * (cast_expression "(void **)(*(int *)(param_1 + 4) + 4)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" ( (binary_expression "*(int *)(param_1 + 4) + 4" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) + number_literal) )))) , identifier ))) ;) (expression_statement "iVar2 = iVar3 * 2 + 1;" (assignment_expression "iVar2 = iVar3 * 2 + 1" identifier = (binary_expression "iVar3 * 2 + 1" (binary_expression "iVar3 * 2" identifier * number_literal) + number_literal)) ;) (expression_statement "*(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);" (assignment_expression "*(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18)" (pointer_expression "*(char *)((int)param_2 + __n + 4)" * (cast_expression "(char *)((int)param_2 + __n + 4)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 4)" ( (binary_expression "(int)param_2 + __n + 4" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)((uint)iVar2 >> 0x18)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x18)" ( (binary_expression "(uint)iVar2 >> 0x18" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);" (assignment_expression "*(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8)" (pointer_expression "*(char *)((int)param_2 + __n + 6)" * (cast_expression "(char *)((int)param_2 + __n + 6)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 6)" ( (binary_expression "(int)param_2 + __n + 6" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)((uint)iVar2 >> 8)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 8)" ( (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);" (assignment_expression "*(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10)" (pointer_expression "*(char *)((int)param_2 + __n + 5)" * (cast_expression "(char *)((int)param_2 + __n + 5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 5)" ( (binary_expression "(int)param_2 + __n + 5" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)((uint)iVar2 >> 0x10)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "((uint)iVar2 >> 0x10)" ( (binary_expression "(uint)iVar2 >> 0x10" (cast_expression "(uint)iVar2" ( (type_descriptor "uint" type_identifier) ) identifier) >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';" (assignment_expression "*(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01'" (pointer_expression "*(char *)((int)param_2 + __n + 7)" * (cast_expression "(char *)((int)param_2 + __n + 7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 7)" ( (binary_expression "(int)param_2 + __n + 7" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (binary_expression "(char)iVar3 * '\x02' + '\x01'" (binary_expression "(char)iVar3 * '\x02'" (cast_expression "(char)iVar3" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\x02'" ' escape_sequence ')) + (char_literal "'\x01'" ' escape_sequence '))) ;) (expression_statement "*(undefined1 *)((int)param_2 + __n + 8) = 4;" (assignment_expression "*(undefined1 *)((int)param_2 + __n + 8) = 4" (pointer_expression "*(undefined1 *)((int)param_2 + __n + 8)" * (cast_expression "(undefined1 *)((int)param_2 + __n + 8)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + __n + 8)" ( (binary_expression "(int)param_2 + __n + 8" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }" { (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar5 = (undefined1 *)(local_24 + (int)param_2);" (assignment_expression "puVar5 = (undefined1 *)(local_24 + (int)param_2)" identifier = (cast_expression "(undefined1 *)(local_24 + (int)param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + (int)param_2)" ( (binary_expression "local_24 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (do_statement "do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);" do (compound_statement "{\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        }" { (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);" (assignment_expression "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2)" identifier = (call_expression "FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 8),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 8)" * (cast_expression "(undefined4 *)(param_1 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) (expression_statement "local_24 = iVar3 + 9 + __n;" (assignment_expression "local_24 = iVar3 + 9 + __n" identifier = (binary_expression "iVar3 + 9 + __n" (binary_expression "iVar3 + 9" identifier + number_literal) + identifier)) ;) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ;) (expression_statement "puVar5 = (undefined1 *)((int)param_2 + local_24);" (assignment_expression "puVar5 = (undefined1 *)((int)param_2 + local_24)" identifier = (cast_expression "(undefined1 *)((int)param_2 + local_24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24)" ( (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) ;) (do_statement "do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);" do (compound_statement "{\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        }" { (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);" (assignment_expression "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2)" identifier = (call_expression "FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0xc),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0xc)" * (cast_expression "(undefined4 *)(param_1 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" identifier = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar4 != -1)" ( (binary_expression "iVar4 != -1" identifier != number_literal) )) ;) (expression_statement "local_24 = iVar3 + local_24;" (assignment_expression "local_24 = iVar3 + local_24" identifier = (binary_expression "iVar3 + local_24" identifier + identifier)) ;) })) (expression_statement "iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));" (assignment_expression "iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18))" identifier = (call_expression "FUN_000221a0(*(undefined4 *)(param_1 + 0x18))" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18))" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) )))) ;) (expression_statement "iVar3 = iVar2 + 8;" (assignment_expression "iVar3 = iVar2 + 8" identifier = (binary_expression "iVar2 + 8" identifier + number_literal)) ;) (if_statement "if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }" if (parenthesized_expression "(iVar2 + 8 < 0)" ( (binary_expression "iVar2 + 8 < 0" (binary_expression "iVar2 + 8" identifier + number_literal) < number_literal) )) (compound_statement "{\n        iVar3 = iVar2 + 0xf;\n      }" { (expression_statement "iVar3 = iVar2 + 0xf;" (assignment_expression "iVar3 = iVar2 + 0xf" identifier = (binary_expression "iVar2 + 0xf" identifier + number_literal)) ;) })) (expression_statement "iVar4 = iVar3 >> 3;" (assignment_expression "iVar4 = iVar3 >> 3" identifier = (binary_expression "iVar3 >> 3" identifier >> number_literal)) ;) (expression_statement "*(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);" (assignment_expression "*(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b)" (pointer_expression "*(char *)((int)param_2 + local_24)" * (cast_expression "(char *)((int)param_2 + local_24)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24)" ( (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) )))) = (cast_expression "(char)(iVar3 >> 0x1b)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar3 >> 0x1b)" ( (binary_expression "iVar3 >> 0x1b" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);" (assignment_expression "*(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb)" (pointer_expression "*(char *)((int)param_2 + local_24 + 2)" * (cast_expression "(char *)((int)param_2 + local_24 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24 + 2)" ( (binary_expression "(int)param_2 + local_24 + 2" (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)(iVar3 >> 0xb)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar3 >> 0xb)" ( (binary_expression "iVar3 >> 0xb" identifier >> number_literal) )))) ;) (expression_statement "iVar2 = local_24 + 4;" (assignment_expression "iVar2 = local_24 + 4" identifier = (binary_expression "local_24 + 4" identifier + number_literal)) ;) (expression_statement "*(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);" (assignment_expression "*(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13)" (pointer_expression "*(char *)((int)param_2 + local_24 + 1)" * (cast_expression "(char *)((int)param_2 + local_24 + 1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24 + 1)" ( (binary_expression "(int)param_2 + local_24 + 1" (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)(iVar3 >> 0x13)" ( (type_descriptor "char" primitive_type) ) (parenthesized_expression "(iVar3 >> 0x13)" ( (binary_expression "iVar3 >> 0x13" identifier >> number_literal) )))) ;) (expression_statement "*(char *)((int)param_2 + local_24 + 3) = (char)iVar4;" (assignment_expression "*(char *)((int)param_2 + local_24 + 3) = (char)iVar4" (pointer_expression "*(char *)((int)param_2 + local_24 + 3)" * (cast_expression "(char *)((int)param_2 + local_24 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)param_2 + local_24 + 3)" ( (binary_expression "(int)param_2 + local_24 + 3" (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = (cast_expression "(char)iVar4" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }" { (expression_statement "puVar5 = (undefined1 *)(iVar2 + (int)param_2);" (assignment_expression "puVar5 = (undefined1 *)(iVar2 + (int)param_2)" identifier = (cast_expression "(undefined1 *)(iVar2 + (int)param_2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + (int)param_2)" ( (binary_expression "iVar2 + (int)param_2" identifier + (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "iVar2 = iVar4 + -1;" (assignment_expression "iVar2 = iVar4 + -1" identifier = (binary_expression "iVar4 + -1" identifier + number_literal)) ;) (do_statement "do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);" do (compound_statement "{\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        }" { (expression_statement "iVar3 = iVar2 + -1;" (assignment_expression "iVar3 = iVar2 + -1" identifier = (binary_expression "iVar2 + -1" identifier + number_literal)) ;) (expression_statement "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);" (assignment_expression "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2)" identifier = (call_expression "FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2)" identifier (argument_list "(*(undefined4 *)(param_1 + 0x18),iVar2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x18)" * (cast_expression "(undefined4 *)(param_1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) , identifier )))) ;) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" identifier = (binary_expression "puVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" identifier = identifier) ;) }) while (parenthesized_expression "(iVar3 != -1)" ( (binary_expression "iVar3 != -1" identifier != number_literal) )) ;) (return_statement "return iVar4 + 4 + local_24;" return (binary_expression "iVar4 + 4 + local_24" (binary_expression "iVar4 + 4" identifier + number_literal) + identifier) ;) })) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + IDENT) + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (char_literal ' escape_sequence ')) + (char_literal ' escape_sequence '))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (cast_expression ( (type_descriptor TYPE) ) IDENT)) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) (return_statement return (binary_expression (binary_expression IDENT + LIT) + IDENT) ;) })) })) })) (return_statement return IDENT ;) })))
(function_definition "int FUN_00028830(int param_1,uint *param_2,int param_3)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  size_t __n;\n  int iVar4;\n  undefined1 *puVar5;\n  int local_24;\n  \n  iVar2 = 0;\n  if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }\n  return iVar2;\n}" (primitive_type "int") (function_declarator "FUN_00028830(int param_1,uint *param_2,int param_3)" (identifier "FUN_00028830") (parameter_list "(int param_1,uint *param_2,int param_3)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint *param_2" (type_identifier "uint") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  int iVar3;\n  size_t __n;\n  int iVar4;\n  undefined1 *puVar5;\n  int local_24;\n  \n  iVar2 = 0;\n  if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }\n  return iVar2;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "size_t __n;" (primitive_type "size_t") (identifier "__n") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined1 *puVar5;" (type_identifier "undefined1") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (**(int **)(param_1 + 4) == 0) {\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(**(int **)(param_1 + 4) == 0)" (( "(") (binary_expression "**(int **)(param_1 + 4) == 0" (pointer_expression "**(int **)(param_1 + 4)" (* "*") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);\n    iVar3 = iVar2 + 7;\n    if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }\n    iVar3 = iVar3 >> 3;\n    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));\n    local_24 = __n + 9;\n    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));\n    iVar2 = iVar2 + local_24 + iVar3 * 2;\n    if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);" (assignment_expression "iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4])" (identifier "iVar2") (= "=") (call_expression "FUN_000221a0((*(int **)(param_1 + 4))[4])" (identifier "FUN_000221a0") (argument_list "((*(int **)(param_1 + 4))[4])" (( "(") (subscript_expression "(*(int **)(param_1 + 4))[4]" (parenthesized_expression "(*(int **)(param_1 + 4))" (( "(") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) () ")")) ([ "[") (number_literal "4") (] "]")) () ")")))) (; ";")) (expression_statement "iVar3 = iVar2 + 7;" (assignment_expression "iVar3 = iVar2 + 7" (identifier "iVar3") (= "=") (binary_expression "iVar2 + 7" (identifier "iVar2") (+ "+") (number_literal "7"))) (; ";")) (if_statement "if (iVar2 + 7 < 0) {\n      iVar3 = iVar2 + 0xe;\n    }" (if "if") (parenthesized_expression "(iVar2 + 7 < 0)" (( "(") (binary_expression "iVar2 + 7 < 0" (binary_expression "iVar2 + 7" (identifier "iVar2") (+ "+") (number_literal "7")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      iVar3 = iVar2 + 0xe;\n    }" ({ "{") (expression_statement "iVar3 = iVar2 + 0xe;" (assignment_expression "iVar3 = iVar2 + 0xe" (identifier "iVar3") (= "=") (binary_expression "iVar2 + 0xe" (identifier "iVar2") (+ "+") (number_literal "0xe"))) (; ";")) (} "}"))) (expression_statement "iVar3 = iVar3 >> 3;" (assignment_expression "iVar3 = iVar3 >> 3" (identifier "iVar3") (= "=") (binary_expression "iVar3 >> 3" (identifier "iVar3") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "__n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));" (assignment_expression "__n = strlen(*(char **)(*(int *)(param_1 + 4) + 4))" (identifier "__n") (= "=") (call_expression "strlen(*(char **)(*(int *)(param_1 + 4) + 4))" (identifier "strlen") (argument_list "(*(char **)(*(int *)(param_1 + 4) + 4))" (( "(") (pointer_expression "*(char **)(*(int *)(param_1 + 4) + 4)" (* "*") (cast_expression "(char **)(*(int *)(param_1 + 4) + 4)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 4" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (expression_statement "local_24 = __n + 9;" (assignment_expression "local_24 = __n + 9" (identifier "local_24") (= "=") (binary_expression "__n + 9" (identifier "__n") (+ "+") (number_literal "9"))) (; ";")) (expression_statement "iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));" (assignment_expression "iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18))" (identifier "iVar2") (= "=") (call_expression "FUN_00022240(*(undefined4 *)(param_1 + 0x18))" (identifier "FUN_00022240") (argument_list "(*(undefined4 *)(param_1 + 0x18))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar2 = iVar2 + local_24 + iVar3 * 2;" (assignment_expression "iVar2 = iVar2 + local_24 + iVar3 * 2" (identifier "iVar2") (= "=") (binary_expression "iVar2 + local_24 + iVar3 * 2" (binary_expression "iVar2 + local_24" (identifier "iVar2") (+ "+") (identifier "local_24")) (+ "+") (binary_expression "iVar3 * 2" (identifier "iVar3") (* "*") (number_literal "2")))) (; ";")) (if_statement "if (iVar2 <= param_3) {\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }" (if "if") (parenthesized_expression "(iVar2 <= param_3)" (( "(") (binary_expression "iVar2 <= param_3" (identifier "iVar2") (<= "<=") (identifier "param_3")) () ")")) (compound_statement "{\n      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;\n      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);\n      iVar2 = iVar3 * 2 + 1;\n      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);\n      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);\n      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);\n      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';\n      *(undefined1 *)((int)param_2 + __n + 8) = 4;\n      if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }\n      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));\n      iVar3 = iVar2 + 8;\n      if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }\n      iVar4 = iVar3 >> 3;\n      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);\n      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);\n      iVar2 = local_24 + 4;\n      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);\n      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;\n      if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }\n    }" ({ "{") (expression_statement "*param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;" (assignment_expression "*param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18" (pointer_expression "*param_2" (* "*") (identifier "param_2")) (= "=") (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8" (binary_expression "__n >> 0x18 | (__n & 0xff0000) >> 8" (binary_expression "__n >> 0x18" (identifier "__n") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(__n & 0xff0000) >> 8" (parenthesized_expression "(__n & 0xff0000)" (( "(") (binary_expression "__n & 0xff0000" (identifier "__n") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(__n & 0xff00) << 8" (parenthesized_expression "(__n & 0xff00)" (( "(") (binary_expression "__n & 0xff00" (identifier "__n") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "__n << 0x18" (identifier "__n") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);" (call_expression "memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n)" (identifier "memcpy") (argument_list "(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n)" (( "(") (binary_expression "param_2 + 1" (identifier "param_2") (+ "+") (number_literal "1")) (, ",") (pointer_expression "*(void **)(*(int *)(param_1 + 4) + 4)" (* "*") (cast_expression "(void **)(*(int *)(param_1 + 4) + 4)" (( "(") (type_descriptor "void **" (primitive_type "void") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 4) + 4)" (( "(") (binary_expression "*(int *)(param_1 + 4) + 4" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "4")) () ")")))) (, ",") (identifier "__n") () ")"))) (; ";")) (expression_statement "iVar2 = iVar3 * 2 + 1;" (assignment_expression "iVar2 = iVar3 * 2 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar3 * 2 + 1" (binary_expression "iVar3 * 2" (identifier "iVar3") (* "*") (number_literal "2")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);" (assignment_expression "*(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18)" (pointer_expression "*(char *)((int)param_2 + __n + 4)" (* "*") (cast_expression "(char *)((int)param_2 + __n + 4)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + __n + 4)" (( "(") (binary_expression "(int)param_2 + __n + 4" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "__n")) (+ "+") (number_literal "4")) () ")")))) (= "=") (cast_expression "(char)((uint)iVar2 >> 0x18)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar2 >> 0x18)" (( "(") (binary_expression "(uint)iVar2 >> 0x18" (cast_expression "(uint)iVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar2")) (>> ">>") (number_literal "0x18")) () ")")))) (; ";")) (expression_statement "*(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);" (assignment_expression "*(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8)" (pointer_expression "*(char *)((int)param_2 + __n + 6)" (* "*") (cast_expression "(char *)((int)param_2 + __n + 6)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + __n + 6)" (( "(") (binary_expression "(int)param_2 + __n + 6" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "__n")) (+ "+") (number_literal "6")) () ")")))) (= "=") (cast_expression "(char)((uint)iVar2 >> 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar2 >> 8)" (( "(") (binary_expression "(uint)iVar2 >> 8" (cast_expression "(uint)iVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar2")) (>> ">>") (number_literal "8")) () ")")))) (; ";")) (expression_statement "*(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);" (assignment_expression "*(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10)" (pointer_expression "*(char *)((int)param_2 + __n + 5)" (* "*") (cast_expression "(char *)((int)param_2 + __n + 5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + __n + 5)" (( "(") (binary_expression "(int)param_2 + __n + 5" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "__n")) (+ "+") (number_literal "5")) () ")")))) (= "=") (cast_expression "(char)((uint)iVar2 >> 0x10)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "((uint)iVar2 >> 0x10)" (( "(") (binary_expression "(uint)iVar2 >> 0x10" (cast_expression "(uint)iVar2" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "iVar2")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';" (assignment_expression "*(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01'" (pointer_expression "*(char *)((int)param_2 + __n + 7)" (* "*") (cast_expression "(char *)((int)param_2 + __n + 7)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + __n + 7)" (( "(") (binary_expression "(int)param_2 + __n + 7" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "__n")) (+ "+") (number_literal "7")) () ")")))) (= "=") (binary_expression "(char)iVar3 * '\x02' + '\x01'" (binary_expression "(char)iVar3 * '\x02'" (cast_expression "(char)iVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar3")) (* "*") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'"))) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")))) (; ";")) (expression_statement "*(undefined1 *)((int)param_2 + __n + 8) = 4;" (assignment_expression "*(undefined1 *)((int)param_2 + __n + 8) = 4" (pointer_expression "*(undefined1 *)((int)param_2 + __n + 8)" (* "*") (cast_expression "(undefined1 *)((int)param_2 + __n + 8)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + __n + 8)" (( "(") (binary_expression "(int)param_2 + __n + 8" (binary_expression "(int)param_2 + __n" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "__n")) (+ "+") (number_literal "8")) () ")")))) (= "=") (number_literal "4")) (; ";")) (if_statement "if (iVar3 != 0) {\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)(local_24 + (int)param_2);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + 9 + __n;\n        iVar2 = iVar3 + -1;\n        puVar5 = (undefined1 *)((int)param_2 + local_24);\n        do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);\n        local_24 = iVar3 + local_24;\n      }" ({ "{") (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar5 = (undefined1 *)(local_24 + (int)param_2);" (assignment_expression "puVar5 = (undefined1 *)(local_24 + (int)param_2)" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)(local_24 + (int)param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + (int)param_2)" (( "(") (binary_expression "local_24 + (int)param_2" (identifier "local_24") (+ "+") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")))) (; ";")) (do_statement "do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);" (do "do") (compound_statement "{\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        }" ({ "{") (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);" (assignment_expression "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2)" (identifier "uVar1") (= "=") (call_expression "FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2)" (identifier "FUN_00022290") (argument_list "(*(undefined4 *)(param_1 + 8),iVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 8)" (* "*") (cast_expression "(undefined4 *)(param_1 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" (identifier "iVar2") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != -1)" (( "(") (binary_expression "iVar4 != -1" (identifier "iVar4") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (expression_statement "local_24 = iVar3 + 9 + __n;" (assignment_expression "local_24 = iVar3 + 9 + __n" (identifier "local_24") (= "=") (binary_expression "iVar3 + 9 + __n" (binary_expression "iVar3 + 9" (identifier "iVar3") (+ "+") (number_literal "9")) (+ "+") (identifier "__n"))) (; ";")) (expression_statement "iVar2 = iVar3 + -1;" (assignment_expression "iVar2 = iVar3 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "puVar5 = (undefined1 *)((int)param_2 + local_24);" (assignment_expression "puVar5 = (undefined1 *)((int)param_2 + local_24)" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)((int)param_2 + local_24)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + local_24)" (( "(") (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "local_24")) () ")")))) (; ";")) (do_statement "do {\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        } while (iVar4 != -1);" (do "do") (compound_statement "{\n          iVar4 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);\n          *puVar5 = uVar1;\n          iVar2 = iVar4;\n          puVar5 = puVar5 + 1;\n        }" ({ "{") (expression_statement "iVar4 = iVar2 + -1;" (assignment_expression "iVar4 = iVar2 + -1" (identifier "iVar4") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);" (assignment_expression "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2)" (identifier "uVar1") (= "=") (call_expression "FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2)" (identifier "FUN_00022290") (argument_list "(*(undefined4 *)(param_1 + 0xc),iVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "iVar2 = iVar4;" (assignment_expression "iVar2 = iVar4" (identifier "iVar2") (= "=") (identifier "iVar4")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar4 != -1)" (( "(") (binary_expression "iVar4 != -1" (identifier "iVar4") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (expression_statement "local_24 = iVar3 + local_24;" (assignment_expression "local_24 = iVar3 + local_24" (identifier "local_24") (= "=") (binary_expression "iVar3 + local_24" (identifier "iVar3") (+ "+") (identifier "local_24"))) (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));" (assignment_expression "iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18))" (identifier "iVar2") (= "=") (call_expression "FUN_000221a0(*(undefined4 *)(param_1 + 0x18))" (identifier "FUN_000221a0") (argument_list "(*(undefined4 *)(param_1 + 0x18))" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar3 = iVar2 + 8;" (assignment_expression "iVar3 = iVar2 + 8" (identifier "iVar3") (= "=") (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8"))) (; ";")) (if_statement "if (iVar2 + 8 < 0) {\n        iVar3 = iVar2 + 0xf;\n      }" (if "if") (parenthesized_expression "(iVar2 + 8 < 0)" (( "(") (binary_expression "iVar2 + 8 < 0" (binary_expression "iVar2 + 8" (identifier "iVar2") (+ "+") (number_literal "8")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n        iVar3 = iVar2 + 0xf;\n      }" ({ "{") (expression_statement "iVar3 = iVar2 + 0xf;" (assignment_expression "iVar3 = iVar2 + 0xf" (identifier "iVar3") (= "=") (binary_expression "iVar2 + 0xf" (identifier "iVar2") (+ "+") (number_literal "0xf"))) (; ";")) (} "}"))) (expression_statement "iVar4 = iVar3 >> 3;" (assignment_expression "iVar4 = iVar3 >> 3" (identifier "iVar4") (= "=") (binary_expression "iVar3 >> 3" (identifier "iVar3") (>> ">>") (number_literal "3"))) (; ";")) (expression_statement "*(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);" (assignment_expression "*(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b)" (pointer_expression "*(char *)((int)param_2 + local_24)" (* "*") (cast_expression "(char *)((int)param_2 + local_24)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + local_24)" (( "(") (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "local_24")) () ")")))) (= "=") (cast_expression "(char)(iVar3 >> 0x1b)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(iVar3 >> 0x1b)" (( "(") (binary_expression "iVar3 >> 0x1b" (identifier "iVar3") (>> ">>") (number_literal "0x1b")) () ")")))) (; ";")) (expression_statement "*(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);" (assignment_expression "*(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb)" (pointer_expression "*(char *)((int)param_2 + local_24 + 2)" (* "*") (cast_expression "(char *)((int)param_2 + local_24 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + local_24 + 2)" (( "(") (binary_expression "(int)param_2 + local_24 + 2" (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "local_24")) (+ "+") (number_literal "2")) () ")")))) (= "=") (cast_expression "(char)(iVar3 >> 0xb)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(iVar3 >> 0xb)" (( "(") (binary_expression "iVar3 >> 0xb" (identifier "iVar3") (>> ">>") (number_literal "0xb")) () ")")))) (; ";")) (expression_statement "iVar2 = local_24 + 4;" (assignment_expression "iVar2 = local_24 + 4" (identifier "iVar2") (= "=") (binary_expression "local_24 + 4" (identifier "local_24") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "*(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);" (assignment_expression "*(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13)" (pointer_expression "*(char *)((int)param_2 + local_24 + 1)" (* "*") (cast_expression "(char *)((int)param_2 + local_24 + 1)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + local_24 + 1)" (( "(") (binary_expression "(int)param_2 + local_24 + 1" (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "local_24")) (+ "+") (number_literal "1")) () ")")))) (= "=") (cast_expression "(char)(iVar3 >> 0x13)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (parenthesized_expression "(iVar3 >> 0x13)" (( "(") (binary_expression "iVar3 >> 0x13" (identifier "iVar3") (>> ">>") (number_literal "0x13")) () ")")))) (; ";")) (expression_statement "*(char *)((int)param_2 + local_24 + 3) = (char)iVar4;" (assignment_expression "*(char *)((int)param_2 + local_24 + 3) = (char)iVar4" (pointer_expression "*(char *)((int)param_2 + local_24 + 3)" (* "*") (cast_expression "(char *)((int)param_2 + local_24 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)param_2 + local_24 + 3)" (( "(") (binary_expression "(int)param_2 + local_24 + 3" (binary_expression "(int)param_2 + local_24" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (+ "+") (identifier "local_24")) (+ "+") (number_literal "3")) () ")")))) (= "=") (cast_expression "(char)iVar4" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar4"))) (; ";")) (if_statement "if (iVar4 != 0) {\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        puVar5 = (undefined1 *)(iVar2 + (int)param_2);\n        iVar2 = iVar4 + -1;\n        do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);\n        return iVar4 + 4 + local_24;\n      }" ({ "{") (expression_statement "puVar5 = (undefined1 *)(iVar2 + (int)param_2);" (assignment_expression "puVar5 = (undefined1 *)(iVar2 + (int)param_2)" (identifier "puVar5") (= "=") (cast_expression "(undefined1 *)(iVar2 + (int)param_2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + (int)param_2)" (( "(") (binary_expression "iVar2 + (int)param_2" (identifier "iVar2") (+ "+") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")))) (; ";")) (expression_statement "iVar2 = iVar4 + -1;" (assignment_expression "iVar2 = iVar4 + -1" (identifier "iVar2") (= "=") (binary_expression "iVar4 + -1" (identifier "iVar4") (+ "+") (number_literal "-1"))) (; ";")) (do_statement "do {\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        } while (iVar3 != -1);" (do "do") (compound_statement "{\n          iVar3 = iVar2 + -1;\n          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);\n          *puVar5 = uVar1;\n          puVar5 = puVar5 + 1;\n          iVar2 = iVar3;\n        }" ({ "{") (expression_statement "iVar3 = iVar2 + -1;" (assignment_expression "iVar3 = iVar2 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar2 + -1" (identifier "iVar2") (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);" (assignment_expression "uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2)" (identifier "uVar1") (= "=") (call_expression "FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2)" (identifier "FUN_00022290") (argument_list "(*(undefined4 *)(param_1 + 0x18),iVar2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (, ",") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "*puVar5 = uVar1;" (assignment_expression "*puVar5 = uVar1" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "uVar1")) (; ";")) (expression_statement "puVar5 = puVar5 + 1;" (assignment_expression "puVar5 = puVar5 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + 1" (identifier "puVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar2 = iVar3;" (assignment_expression "iVar2 = iVar3" (identifier "iVar2") (= "=") (identifier "iVar3")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar3 != -1)" (( "(") (binary_expression "iVar3 != -1" (identifier "iVar3") (!= "!=") (number_literal "-1")) () ")")) (; ";")) (return_statement "return iVar4 + 4 + local_24;" (return "return") (binary_expression "iVar4 + 4 + local_24" (binary_expression "iVar4 + 4" (identifier "iVar4") (+ "+") (number_literal "4")) (+ "+") (identifier "local_24")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

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

int function_1(void *key,type_1 *var_10,int var_8)

{
  int var_2;
  int var_3;
  size_t var_5;
  int var_13;
  type_1 *var_12;
  int var_7;
  
  var_2 = 0;
  if (**(int **)((int)key + 4) == 0) {
    var_2 = var_1((type_2)(*(int **)((int)key + 4))[4]);
    var_3 = var_2 + 7;
    if (var_2 + 7 < 0) {
      var_3 = var_2 + 0xe;
    }
    var_3 = var_3 >> 3;
    var_5 = var_4(*(char **)(*(int *)((int)key + 4) + 4));
    var_7 = var_5 + 9;
    var_2 = var_6(*(type_2 *)((int)key + 0x18));
    var_2 = var_2 + var_7 + var_3 * 2;
    if (var_2 <= var_8) {
      *(size_t *)var_10 = var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18;
      var_9(var_10 + 4,*(void **)(*(int *)((int)key + 4) + 4),var_5);
      var_2 = var_3 * 2 + 1;
      var_10[var_5 + 4] = (type_1)((type_3)var_2 >> 0x18);
      var_10[var_5 + 6] = (type_1)((type_3)var_2 >> 8);
      var_10[var_5 + 5] = (type_1)((type_3)var_2 >> 0x10);
      var_10[var_5 + 7] = (char)var_3 * '\x02' + '\x01';
      var_10[var_5 + 8] = '\x04';
      if (var_3 != 0) {
        var_2 = var_3 + -1;
        var_12 = var_10 + var_7;
        do {
          var_13 = var_2 + -1;
          var_2 = var_11(*(type_2 *)((int)key + 8),var_2);
          *var_12 = (type_1)var_2;
          var_2 = var_13;
          var_12 = var_12 + 1;
        } while (var_13 != -1);
        var_7 = var_3 + 9 + var_5;
        var_2 = var_3 + -1;
        var_12 = var_10 + var_7;
        do {
          var_13 = var_2 + -1;
          var_2 = var_11(*(type_2 *)((int)key + 0xc),var_2);
          *var_12 = (type_1)var_2;
          var_2 = var_13;
          var_12 = var_12 + 1;
        } while (var_13 != -1);
        var_7 = var_3 + var_7;
      }
      var_2 = var_1(*(type_2 *)((int)key + 0x18));
      var_3 = var_2 + 8;
      if (var_2 + 8 < 0) {
        var_3 = var_2 + 0xf;
      }
      var_13 = var_3 >> 3;
      var_10[var_7] = (type_1)(var_3 >> 0x1b);
      var_10[var_7 + 2] = (type_1)(var_3 >> 0xb);
      var_2 = var_7 + 4;
      var_10[var_7 + 1] = (type_1)(var_3 >> 0x13);
      var_10[var_7 + 3] = (type_1)var_13;
      if (var_13 != 0) {
        var_12 = var_10 + var_2;
        var_2 = var_13 + -1;
        do {
          var_3 = var_2 + -1;
          var_2 = var_11(*(type_2 *)((int)key + 0x18),var_2);
          *var_12 = (type_1)var_2;
          var_12 = var_12 + 1;
          var_2 = var_3;
        } while (var_3 != -1);
        return var_13 + 4 + var_7;
      }
    }
  }
  return var_2;
}


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

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

int MASKED(int param_1,uint *param_2,int param_3)

{
  undefined1 uVar1;
  int iVar2;
  int iVar3;
  size_t __n;
  int iVar4;
  undefined1 *puVar5;
  int local_24;
  
  iVar2 = 0;
  if (**(int **)(param_1 + 4) == 0) {
    iVar2 = FUN_000221a0((*(int **)(param_1 + 4))[4]);
    iVar3 = iVar2 + 7;
    if (iVar2 + 7 < 0) {
      iVar3 = iVar2 + 0xe;
    }
    iVar3 = iVar3 >> 3;
    __n = strlen(*(char **)(*(int *)(param_1 + 4) + 4));
    local_24 = __n + 9;
    iVar2 = FUN_00022240(*(undefined4 *)(param_1 + 0x18));
    iVar2 = iVar2 + local_24 + iVar3 * 2;
    if (iVar2 <= param_3) {
      *param_2 = __n >> 0x18 | (__n & 0xff0000) >> 8 | (__n & 0xff00) << 8 | __n << 0x18;
      memcpy(param_2 + 1,*(void **)(*(int *)(param_1 + 4) + 4),__n);
      iVar2 = iVar3 * 2 + 1;
      *(char *)((int)param_2 + __n + 4) = (char)((uint)iVar2 >> 0x18);
      *(char *)((int)param_2 + __n + 6) = (char)((uint)iVar2 >> 8);
      *(char *)((int)param_2 + __n + 5) = (char)((uint)iVar2 >> 0x10);
      *(char *)((int)param_2 + __n + 7) = (char)iVar3 * '\x02' + '\x01';
      *(undefined1 *)((int)param_2 + __n + 8) = 4;
      if (iVar3 != 0) {
        iVar2 = iVar3 + -1;
        puVar5 = (undefined1 *)(local_24 + (int)param_2);
        do {
          iVar4 = iVar2 + -1;
          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 8),iVar2);
          *puVar5 = uVar1;
          iVar2 = iVar4;
          puVar5 = puVar5 + 1;
        } while (iVar4 != -1);
        local_24 = iVar3 + 9 + __n;
        iVar2 = iVar3 + -1;
        puVar5 = (undefined1 *)((int)param_2 + local_24);
        do {
          iVar4 = iVar2 + -1;
          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0xc),iVar2);
          *puVar5 = uVar1;
          iVar2 = iVar4;
          puVar5 = puVar5 + 1;
        } while (iVar4 != -1);
        local_24 = iVar3 + local_24;
      }
      iVar2 = FUN_000221a0(*(undefined4 *)(param_1 + 0x18));
      iVar3 = iVar2 + 8;
      if (iVar2 + 8 < 0) {
        iVar3 = iVar2 + 0xf;
      }
      iVar4 = iVar3 >> 3;
      *(char *)((int)param_2 + local_24) = (char)(iVar3 >> 0x1b);
      *(char *)((int)param_2 + local_24 + 2) = (char)(iVar3 >> 0xb);
      iVar2 = local_24 + 4;
      *(char *)((int)param_2 + local_24 + 1) = (char)(iVar3 >> 0x13);
      *(char *)((int)param_2 + local_24 + 3) = (char)iVar4;
      if (iVar4 != 0) {
        puVar5 = (undefined1 *)(iVar2 + (int)param_2);
        iVar2 = iVar4 + -1;
        do {
          iVar3 = iVar2 + -1;
          uVar1 = FUN_00022290(*(undefined4 *)(param_1 + 0x18),iVar2);
          *puVar5 = uVar1;
          puVar5 = puVar5 + 1;
          iVar2 = iVar3;
        } while (iVar3 != -1);
        return iVar4 + 4 + local_24;
      }
    }
  }
  return iVar2;
}

