//==== offset 0x2a446c  FUN_002a446c  size=1

uint FUN_002a446c(undefined8 param_1)

{
  undefined1 *puVar1;
  int iVar2;
  undefined4 uVar3;
  undefined4 *puVar4;
  undefined8 uVar5;
  long lVar6;
  long unaff_x29;
  ulong auStack_110 [2];
  undefined1 auStack_100 [256];
  
  puVar1 = auStack_100;
  *(undefined8 *)(unaff_x29 + -0xf8) = param_1;
  *(undefined8 *)(unaff_x29 + -0xf0) = 0x4577c0;
  *(undefined8 *)(unaff_x29 + -0x18) = *(undefined8 *)PTR____stack_chk_guard_0042c1b0;
  *(undefined8 *)(unaff_x29 + -0xe8) = 0xc1f808912700a6cf;
  while( true ) {
    while( true ) {
      while( true ) {
        while (*(long *)(unaff_x29 + -0x108) = *(long *)(unaff_x29 + -0xe8),
              *(long *)(unaff_x29 + -0xe8) == -0x73b21969e163975e) {
          *(bool *)(unaff_x29 + -0x99) = iRam00000000004577b8 != 0;
          *(undefined8 *)(unaff_x29 + -0xe8) = 0x1b39a2c811e9918a;
        }
        if (*(long *)(unaff_x29 + -0x108) != -0x673c0526063deb2d) break;
        iRam00000000004577a8 = 1;
        *(undefined8 *)(unaff_x29 + -0xe8) = 0xaf52e9d778729955;
      }
      if (*(long *)(unaff_x29 + -0x108) != -0x649f4a61b84eb84c) break;
      uVar5 = FUN_002b74c4(0);
      *(undefined8 *)(unaff_x29 + -0xc0) = uVar5;
      uVar3 = FUN_002b74d0();
      *(undefined4 *)(unaff_x29 + -0x84) = uVar3;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xa3a8f7e2fc78df7;
    }
    if (*(long *)(unaff_x29 + -0x108) == -0x61e4b23549ca8bbb) break;
    if (*(long *)(unaff_x29 + -0x108) == -0x55d1bee17b29525b) {
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x72d9a85a8298d483;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x54736108ce3dfb4c) {
      *(undefined1 *)(unaff_x29 + -0xa9) = 1;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xd834e6ded581df3;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x50ad1628878d66ab) {
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x8c4de6961e9c68a2;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x4f6c6b8209ed6731) {
      _strerror(0,*(undefined4 *)(unaff_x29 + -0x88));
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x56270cddfb92173b;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x4172f43ea69e4fae) {
      *(long *)(unaff_x29 + -0x60) = unaff_x29 + -0x36;
      *(long *)(unaff_x29 + -0x58) =
           *(long *)(unaff_x29 + -0xc0) + (long)*(int *)(unaff_x29 + -0xdc) * 4;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xe4cc8b36dda04693;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x3e07f76ed8ff5931) {
      puVar1 = puVar1 + -0x10;
      *(undefined1 **)(unaff_x29 + -0xa8) = puVar1;
      *(undefined8 *)(unaff_x29 + -0xb8) = *(undefined8 *)(unaff_x29 + -0xf8);
      uVar5 = 0x8c4de6961e9c68a2;
      if (iRam00000000004577a8 == 0) {
        uVar5 = 0x98c3fad9f9c214d3;
      }
      *(undefined8 *)(unaff_x29 + -0xe8) = uVar5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x3bca21249989d5a9) {
      _sigaction(*(undefined4 *)(unaff_x29 + -0x4c),
                 *(long *)(unaff_x29 + -0x48) + (long)*(int *)(unaff_x29 + -0xdc) * 0x10,0);
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x394d324c9a2b0a21;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x37ecd2ad6c2f7608) {
      *(int *)(unaff_x29 + -0x3c) = *(int *)(unaff_x29 + -0xdc) + 1;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x7abba5e06e260659;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x3479b4dd99476576) {
      puVar4 = (undefined4 *)___error(*(undefined8 *)(unaff_x29 + -0xa8));
      _strerror(*puVar4);
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x5eaa2b70c72ea634;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x2680920fdb592dbc) {
      iVar2 = _sigaction(**(undefined4 **)(unaff_x29 + -0x70),unaff_x29 + -0xd8,
                         lRam00000000004577d8 + (long)*(int *)(unaff_x29 + -0xdc) * 0x10);
      uVar5 = 0xf252177159e8bc2c;
      if (iVar2 == 0) {
        uVar5 = 0xfdec762eb9875e56;
      }
      *(undefined8 *)(unaff_x29 + -0xe8) = uVar5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x251b515a453634a0) {
      uRam00000000004577c0 = *(undefined8 *)(unaff_x29 + -0x98);
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x158081c2d56ade34;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x1b3374c9225fb96d) {
      uVar5 = *(undefined8 *)(unaff_x29 + -0x60);
      *(ulong *)(puVar1 + -0x10) = (ulong)**(uint **)(unaff_x29 + -0x58);
      ___snprintf_chk(uVar5,0x1e,0,0x1e,"%d");
      **(long **)(unaff_x29 + -0xa8) = unaff_x29 + -0x36;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xcb864b2266b89a8a;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0xdade88ea61743d4) {
      *(long *)(unaff_x29 + -0x68) =
           *(long *)(unaff_x29 + -0xc0) + (long)*(int *)(unaff_x29 + -0xdc) * 4;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x76ac9a0c558f9891;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0xc6bb313a01a39ae) {
      *(long *)(unaff_x29 + -0x70) =
           *(long *)(unaff_x29 + -0xc0) + (long)*(int *)(unaff_x29 + -0xdc) * 4;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xd97f6df024a6d244;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x99a4d8c38080ccb) {
      uVar5 = 0x79c4f96538e8ac;
      if (*(long *)(*(long *)(unaff_x29 + -0xf0) + 8) != 0) {
        uVar5 = 0x158081c2d56ade34;
      }
      *(undefined8 *)(unaff_x29 + -0xe8) = uVar5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == -0x21389d14678a1aa) {
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xc8132d5293d089f8;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x79c4f96538e8ac) {
      lVar6 = *(long *)(unaff_x29 + -0xf0);
      *(undefined8 *)(lVar6 + 8) = 0x20000;
      uVar5 = _malloc(*(undefined8 *)(lVar6 + 8));
      *(undefined8 *)(unaff_x29 + -0x98) = uVar5;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xdae4aea5bac9cb60;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x28cff0f12416a51) {
      uVar5 = 0x15a584d7b28bf074;
      if ((*(byte *)(unaff_x29 + -0x4d) & 1) == 0) {
        uVar5 = 0x2a753d1319d0b056;
      }
      *(undefined8 *)(unaff_x29 + -0xe8) = uVar5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0xa3a8f7e2fc78df7) {
      *(undefined4 *)(unaff_x29 + -0xc4) = *(undefined4 *)(unaff_x29 + -0x84);
      uVar5 = 0x1f5fc36bc1823fa2;
      if (lRam00000000004577d8 != 0) {
        uVar5 = 0x7af884dab6c94b7a;
      }
      *(undefined8 *)(unaff_x29 + -0xe8) = uVar5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0xd834e6ded581df3) {
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x72d9a85a8298d483;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0xf818add128cafc2) {
      *(undefined4 *)(unaff_x29 + -0x78) = *(undefined4 *)(unaff_x29 + -0xdc);
      *(undefined4 *)(unaff_x29 + -0x74) = *(undefined4 *)(unaff_x29 + -0xc4);
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x14c15c7e73061983;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x14c15c7e73061983) {
      uVar5 = 0xf3944cec5fe5c652;
      if (*(int *)(unaff_x29 + -0x74) <= *(int *)(unaff_x29 + -0x78)) {
        uVar5 = 0x6ab01e671a01042f;
      }
      *(undefined8 *)(unaff_x29 + -0xe8) = uVar5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x158081c2d56ade34) {
      iVar2 = _sigaltstack(0,0x4577c0,0);
      *(bool *)(unaff_x29 + -0x89) = iVar2 != 0;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x4a75592ed1b22aab;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x15a584d7b28bf074) {
      *(undefined4 *)(unaff_x29 + -0x4c) =
           *(undefined4 *)(*(long *)(unaff_x29 + -0xc0) + (long)*(int *)(unaff_x29 + -0xdc) * 4);
      *(long *)(unaff_x29 + -0x48) = lRam00000000004577d8;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xc435dedb66762a57;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x1b39a2c811e9918a) {
      uVar5 = 0xab8c9ef731c204b4;
      if ((*(byte *)(unaff_x29 + -0x99) & 1) == 0) {
        uVar5 = 0x2d8bc7f7531b3825;
      }
      *(undefined8 *)(unaff_x29 + -0xe8) = uVar5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x1dd46b65b7149d50) {
      *(bool *)(unaff_x29 + -0x4d) = -1 < *(int *)(unaff_x29 + -0xdc);
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x28cff0f12416a51;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x1f38550c1a09c27c) {
      *(undefined1 *)(unaff_x29 + -0xa9) = 0;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x72d9a85a8298d483;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x1f5fc36bc1823fa2) {
      uVar5 = _malloc((ulong)*(uint *)(unaff_x29 + -0xc4) * 0x10);
      *(undefined8 *)(unaff_x29 + -0x80) = uVar5;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x7286072d58c7f751;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x2416fc178646a5c2) {
      *(undefined4 *)(unaff_x29 + -0xdc) = *(undefined4 *)(unaff_x29 + -0x40);
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x1dd46b65b7149d50;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x2a753d1319d0b056) {
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x56270cddfb92173b;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x2d8bc7f7531b3825) {
      iRam00000000004577b8 = 1;
      uRam00000000004577b0 = *(undefined8 *)(unaff_x29 + -0xb8);
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xf665b273c7f7f335;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x32119d723217e0d5) {
      puVar4 = (undefined4 *)___error(0);
      *(undefined4 *)(unaff_x29 + -0x88) = *puVar4;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xb093947df61298cf;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x394d324c9a2b0a21) {
      *(int *)(unaff_x29 + -0x40) = *(int *)(unaff_x29 + -0xdc) + -1;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x2416fc178646a5c2;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x4a75592ed1b22aab) {
      uVar5 = 0x32119d723217e0d5;
      if ((*(byte *)(unaff_x29 + -0x89) & 1) == 0) {
        uVar5 = 0x9b60b59e47b147b4;
      }
      *(undefined8 *)(unaff_x29 + -0xe8) = uVar5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x56270cddfb92173b) {
      iRam00000000004577a8 = 0;
      iRam00000000004577b8 = 0;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x1f38550c1a09c27c;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x5eaa2b70c72ea634) {
      *(int *)(unaff_x29 + -0xdc) = *(int *)(unaff_x29 + -0xdc) + -1;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x1dd46b65b7149d50;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x6ab01e671a01042f) {
      *(undefined1 *)(unaff_x29 + -0xa9) = 1;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xaa2e411e84d6ada5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x7286072d58c7f751) {
      lRam00000000004577d8 = *(long *)(unaff_x29 + -0x80);
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x7af884dab6c94b7a;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x72d9a85a8298d483) {
      *(byte *)(unaff_x29 + -0x37) = *(byte *)(unaff_x29 + -0xa9) & 1;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x9e1b4dcab6357445;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x76ac9a0c558f9891) {
      uVar5 = func_0x002b69ec(**(undefined4 **)(unaff_x29 + -0x68));
      **(undefined8 **)(unaff_x29 + -0xa8) = uVar5;
      uVar5 = 0xbe8d0bc15961b052;
      if (**(long **)(unaff_x29 + -0xa8) != 0) {
        uVar5 = 0xcb864b2266b89a8a;
      }
      *(undefined8 *)(unaff_x29 + -0xe8) = uVar5;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x7abba5e06e260659) {
      *(undefined4 *)(unaff_x29 + -0xdc) = *(undefined4 *)(unaff_x29 + -0x3c);
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xf818add128cafc2;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x7af884dab6c94b7a) {
      *(undefined8 *)(unaff_x29 + -0xd8) = 0;
      *(undefined8 *)(unaff_x29 + -0xd0) = 0;
      *(undefined4 *)(unaff_x29 + -0xcc) = 0x41;
      *(uint *)(unaff_x29 + -0xcc) = *(uint *)(unaff_x29 + -0xcc) | 0x200;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0x7fd74971c440515d;
    }
    else if (*(long *)(unaff_x29 + -0x108) == 0x7fd74971c440515d) {
      *(undefined4 *)(unaff_x29 + -0xd0) = 0;
      *(undefined **)(unaff_x29 + -0xd8) = &DAT_002a3868;
      *(undefined4 *)(unaff_x29 + -0xdc) = 0;
      *(undefined8 *)(unaff_x29 + -0xe8) = 0xf818add128cafc2;
    }
  }
  *(uint *)(unaff_x29 + -0xfc) = (uint)*(byte *)(unaff_x29 + -0x37);
  lVar6 = *(long *)PTR____stack_chk_guard_0042c1b0 - *(long *)(unaff_x29 + -0x18);
  if (lVar6 != 0) {
    ___stack_chk_fail(lVar6);
  }
  return *(uint *)(unaff_x29 + -0xfc) & 1;
}


//==== offset 0x29f1f4  FUN_0029f1f4  size=1

void FUN_0029f1f4(long param_1)

{
  FUN_0029e528(param_1);
  *(undefined1 *)(param_1 + 0x14) = 1;
  return;
}


//==== offset 0x2a09bc  FUN_002a09bc  size=1

undefined8 FUN_002a09bc(undefined8 param_1)

{
  int iVar1;
  ulong uVar2;
  code *pcVar3;
  long lStack_648;
  undefined1 auStack_640 [819];
  byte bStack_30d;
  int iStack_30c;
  undefined8 uStack_308;
  undefined8 uStack_300;
  undefined8 uStack_2f8;
  undefined8 uStack_2e8;
  undefined4 uStack_2e0;
  undefined8 uStack_2d8;
  int iStack_2cc;
  undefined8 *puStack_2c8;
  int iStack_2c0;
  byte bStack_2b9;
  undefined4 *puStack_2b8;
  int iStack_2ac;
  undefined8 uStack_2a8;
  undefined8 *puStack_2a0;
  undefined8 uStack_298;
  undefined8 *puStack_290;
  undefined8 uStack_288;
  undefined8 *puStack_280;
  undefined8 *puStack_278;
  undefined8 uStack_26c;
  undefined8 uStack_264;
  undefined4 auStack_250 [6];
  undefined8 uStack_238;
  int iStack_230;
  undefined8 uStack_228;
  undefined8 auStack_220 [63];
  long lStack_28;
  
  lStack_28 = *(long *)PTR____stack_chk_guard_0042c1b0;
  uStack_2d8 = param_1;
  _bzero(&uStack_26c,0x244);
  lStack_648 = 0x504e9d7100f9e1d7;
  while( true ) {
    while( true ) {
      while( true ) {
        while( true ) {
          while( true ) {
            while( true ) {
              while( true ) {
                while( true ) {
                  while( true ) {
                    while( true ) {
                      while( true ) {
                        while( true ) {
                          while( true ) {
                            while( true ) {
                              while( true ) {
                                while( true ) {
                                  while( true ) {
                                    while( true ) {
                                      while( true ) {
                                        while( true ) {
                                          while( true ) {
                                            while( true ) {
                                              while( true ) {
                                                while( true ) {
                                                  while( true ) {
                                                    while( true ) {
                                                      while( true ) {
                                                        while( true ) {
                                                          while( true ) {
                                                            while( true ) {
                                                              while (lStack_648 ==
                                                                     -0x7d3cd74f386e7d22) {
                                                                lStack_648 = -0x1b7c52526a99631b;
                                                              }
                                                              if (lStack_648 != -0x7c98e49c383033b3)
                                                              break;
                                                              *(undefined1 *)
                                                               ((long)puRam0000000000457758 + 0x15)
                                                                   = 1;
                                                              lStack_648 = -0x74e3ef0851f99f62;
                                                            }
                                                            if (lStack_648 != -0x7b725bd259023491)
                                                            break;
                                                            *puStack_290 = uStack_298;
                                                            lStack_648 = -0x5117fcef86eb1d62;
                                                          }
                                                          if (lStack_648 != -0x766d5831a187ce1b)
                                                          break;
                                                          lStack_648 = -0x6f7ce8d641534d45;
                                                          if (iRam0000000000457750 == 0) {
                                                            lStack_648 = 0x37408f7d8dc40311;
                                                          }
                                                        }
                                                        if (lStack_648 != -0x74e3ef0851f99f62)
                                                        break;
                                                        FUN_0029e5bc(0,3);
                                                        lStack_648 = -0x233579b3ca9d790c;
                                                      }
                                                      if (lStack_648 != -0x6f7ce8d641534d45) break;
                                                      bStack_30d = *(byte *)((long)
                                                  puRam0000000000457758 + 0x14) & 1;
                                                  lStack_648 = -0x4daefa73d709b211;
                                                  }
                                                  if (lStack_648 != -0x6bfa0ad13a0bf1b9) break;
                                                  iStack_2cc = _mach_msg(&uStack_26c,2,0,0x244,
                                                                         uRam000000000045774c,0);
                                                  lStack_648 = -0x1546c977ac3a83d6;
                                                  }
                                                  if (lStack_648 != -0x5b1e4b5317bd571b) break;
                                                  lStack_648 = 0x7c71ab240cf37bd3;
                                                  if (iStack_2ac != 1) {
                                                    lStack_648 = -0x50ddbe04f0311c38;
                                                  }
                                                }
                                                if (lStack_648 != -0x5117fcef86eb1d62) break;
                                                lStack_648 = 0x696a3843fc56a84a;
                                              }
                                              if (lStack_648 != -0x50ddbe04f0311c38) break;
                                              uStack_298 = FUN_002b637c(0,auStack_640);
                                              puStack_290 = puRam0000000000457758 + 4;
                                              lStack_648 = -0x7b725bd259023491;
                                            }
                                            if (lStack_648 != -0x4daefa73d709b211) break;
                                            FUN_0029f1f4(puRam0000000000457758);
                                            FUN_0029e9d0();
                                            iVar1 = FUN_002b0e5c();
                                            lStack_648 = 0x674fa06bcb239ddf;
                                            if (iVar1 != iRam0000000000457760) {
                                              lStack_648 = 0x3ee12c1e432c525e;
                                            }
                                          }
                                          if (lStack_648 != -0x32cf2ac54f194d1c) break;
                                          FUN_002b0e5c(0);
                                          _thread_suspend();
                                          lStack_648 = -0x16c11fe236bec6a2;
                                        }
                                        if (lStack_648 != -0x2ea3cab4e8a9e51a) break;
                                        lStack_648 = 0x32ba7ec1cfb43a3;
                                      }
                                      if (lStack_648 != -0x2a5ccd282fa9d801) break;
                                      *puStack_2a0 = uStack_2a8;
                                      lStack_648 = -0x5117fcef86eb1d62;
                                    }
                                    if (lStack_648 != -0x233579b3ca9d790c) break;
                                    puStack_2b8 = auStack_250;
                                    lStack_648 = 0x6d00ae238e129fb9;
                                  }
                                  if (lStack_648 != -0x21ce7fad1257d84b) break;
                                  FUN_002a04e0(0);
                                  lStack_648 = -0x7d3cd74f386e7d22;
                                }
                                if (lStack_648 != -0x1b7c52526a99631b) break;
                                lStack_648 = 0x32ba7ec1cfb43a3;
                              }
                              if (lStack_648 != -0x16c11fe236bec6a2) break;
                              lStack_648 = -0x57efd7d832d686d;
                            }
                            if (lStack_648 != -0x1546c977ac3a83d6) break;
                            iStack_30c = iStack_2cc;
                            lStack_648 = 0x3068e844efce71cc;
                            if (iStack_2cc != 0) {
                              lStack_648 = 0x5b164e82aa0ac544;
                            }
                          }
                          if (lStack_648 != -0x57efd7d832d686d) break;
                          lStack_648 = -0x6bfa0ad13a0bf1b9;
                        }
                        if (lStack_648 != -0x5734a3e93d16970) break;
                        puStack_2c8 = auStack_220;
                        lStack_648 = -0x766d5831a187ce1b;
                      }
                      if (lStack_648 != 0x32ba7ec1cfb43a3) break;
                      bStack_2b9 = bStack_30d & 1;
                      lStack_648 = 0x6d0b50f46e80a53a;
                    }
                    if (lStack_648 != 0x19e17019da510c58) break;
                    puRam0000000000457758[0x3f4] = uStack_288;
                    puRam0000000000457758[0x3f5] = auStack_220[0];
                    pcVar3 = (code *)*puRam0000000000457758;
                    FUN_0028f0b8();
                    (*pcVar3)();
                    FUN_0029e5bc(3);
                    FUN_0029ed9c();
                    lStack_648 = 0x37408f7d8dc40311;
                  }
                  if (lStack_648 != 0x3068e844efce71cc) break;
                  lStack_648 = -0x5734a3e93d16970;
                }
                if (lStack_648 != 0x37408f7d8dc40311) break;
                uStack_2f8 = uStack_264;
                uStack_300 = uStack_26c;
                puStack_278 = &uStack_2e8;
                puStack_280 = &uStack_238;
                lStack_648 = 0x63434f8c4a2a52b3;
              }
              if (lStack_648 != 0x3ee12c1e432c525e) break;
              FUN_002a04e0(0);
              lStack_648 = -0x2ea3cab4e8a9e51a;
            }
            if (lStack_648 != 0x4f5ee60b40f4e971) break;
            lStack_648 = -0x6bfa0ad13a0bf1b9;
          }
          if (lStack_648 != 0x504e9d7100f9e1d7) break;
          _memset(0,&uStack_300,0,0x24);
          uStack_308 = uStack_2d8;
          _pthread_setname_np(uStack_2d8);
          iVar1 = _strcmp(uStack_308,"Crash Handler (Secondary)");
          lStack_648 = -0x32cf2ac54f194d1c;
          if (iVar1 != 0) {
            lStack_648 = -0x57efd7d832d686d;
          }
        }
        if (lStack_648 != 0x53bf38781d244130) break;
        lStack_648 = -0x21ce7fad1257d84b;
        if (iStack_2c0 == 0) {
          lStack_648 = -0x1b7c52526a99631b;
        }
      }
      if (lStack_648 != 0x5b164e82aa0ac544) break;
      _mach_error_string(0,iStack_30c);
      lStack_648 = 0x4f5ee60b40f4e971;
    }
    if (lStack_648 == 0x63434f8c4a2a52b3) break;
    if (lStack_648 == 0x66567521a0783044) {
      iStack_2ac = iStack_230;
      lStack_648 = -0x5b1e4b5317bd571b;
    }
    else if (lStack_648 == 0x674fa06bcb239ddf) {
      iStack_2c0 = _thread_resume(uRam0000000000457764);
      lStack_648 = 0x53bf38781d244130;
    }
    else if (lStack_648 == 0x696a3843fc56a84a) {
      *(undefined4 *)(puRam0000000000457758 + 5) = 1;
      *(undefined4 *)(puRam0000000000457758 + 3) = auStack_250[0];
      *(undefined1 *)((long)puRam0000000000457758 + 0x16) = 1;
      *(int *)(puRam0000000000457758 + 0x3f3) = iStack_230;
      uStack_288 = uStack_228;
      lStack_648 = 0x19e17019da510c58;
    }
    else if (lStack_648 == 0x6d00ae238e129fb9) {
      uVar2 = FUN_002a01ac(*puStack_2b8,auStack_640);
      lStack_648 = 0x66567521a0783044;
      if ((uVar2 & 1) == 0) {
        lStack_648 = 0x696a3843fc56a84a;
      }
    }
    else if (lStack_648 == 0x6d0b50f46e80a53a) {
      lStack_648 = -0x7c98e49c383033b3;
      if ((bStack_2b9 & 1) == 0) {
        lStack_648 = -0x233579b3ca9d790c;
      }
    }
    else if (lStack_648 == 0x7c71ab240cf37bd3) {
      uStack_2a8 = FUN_002b6988(0,auStack_640);
      puStack_2a0 = puRam0000000000457758 + 4;
      lStack_648 = -0x2a5ccd282fa9d801;
    }
  }
  *puStack_278 = *puStack_280;
  uStack_2e0 = 5;
  _mach_msg(&uStack_300,1,0x24,0,0,0);
  if (*(long *)PTR____stack_chk_guard_0042c1b0 - lStack_28 != 0) {
    ___stack_chk_fail(*(long *)PTR____stack_chk_guard_0042c1b0 - lStack_28);
  }
  return 0;
}


