Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URLS #2

Open
acheong08 opened this issue Jul 31, 2024 · 2 comments
Open

URLS #2

acheong08 opened this issue Jul 31, 2024 · 2 comments

Comments

@acheong08
Copy link
Owner

{
  undefined *puVar1;
  ID IVar2;
  undefined8 uVar3;
  ID local_30;
  class_t *local_28;
  
  local_28 = &objc::class_t::CLHEndpointSelector;
  local_30 = param_1;
  IVar2 = _objc_msgSendSuper2(&local_30,"init");
  if (IVar2 != 0) {
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    puVar1 = PTR__objc_msgSend_10096ef90;
    uVar3 = (*(code *)PTR__objc_msgSend_10096ef90)
                      (uVar3,"initWithString:",&cf_https://gsp10-ssl.apple.com/au);
    *(undefined8 *)(IVar2 + 8) = uVar3;
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    uVar3 = (*(code *)puVar1)(uVar3,"initWithString:",&cf_https://gsp10-ssl.apple.com/pds/pd);
    *(undefined8 *)(IVar2 + 0x10) = uVar3;
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    uVar3 = (*(code *)puVar1)(uVar3,"initWithString:",&cf_https://gsp10-ssl.apple.com/hcy/pbcwloc);
    *(undefined8 *)(IVar2 + 0x18) = uVar3;
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    uVar3 = (*(code *)puVar1)(uVar3,"initWithString:",&cf_https://gsp10-ssl.apple.com/incs);
    *(undefined8 *)(IVar2 + 0x20) = uVar3;
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    uVar3 = (*(code *)puVar1)(uVar3,"initWithString:",&cf_https://gsp10-ssl.apple.com/pbu);
    *(undefined8 *)(IVar2 + 0x28) = uVar3;
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    uVar3 = (*(code *)puVar1)(uVar3,"initWithString:",&cf_https://gsp10-ssl.ls.apple.com/hvr/aploc);
    *(undefined8 *)(IVar2 + 0x30) = uVar3;
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    uVar3 = (*(code *)puVar1)(uVar3,"initWithString:",&cf_https://gsp10-ssl.apple.com/psr);
    *(undefined8 *)(IVar2 + 0x38) = uVar3;
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    uVar3 = (*(code *)puVar1)(uVar3,"initWithString:",&cf_https://gsp10-ssl.apple.com/hvr/trc);
    *(undefined8 *)(IVar2 + 0x40) = uVar3;
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    uVar3 = (*(code *)puVar1)(uVar3,"initWithString:",&cf_https://gsp10-carry.ls.apple.com/hvr/alt);
    *(undefined8 *)(IVar2 + 0x48) = uVar3;
    uVar3 = _objc_alloc(&_OBJC_CLASS_$_NSURL);
    uVar3 = (*(code *)puVar1)(uVar3,"initWithString:",&cf_https://gsp10-ssl.apple.com/hvr/ion);
    *(undefined8 *)(IVar2 + 0x50) = uVar3;
    (*(code *)puVar1)(IVar2,"refresh");
  }
  return IVar2;
@acheong08
Copy link
Owner Author

CLHEndpointSelector in locationd

@acheong08
Copy link
Owner Author

/* WARNING: Removing unreachable block (ram,0x000100432e38) */
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */

undefined4
FUN_100432696(double param_1,long param_2,int *param_3,int *param_4,byte *param_5,
             undefined2 *param_6,undefined2 *param_7)

{
  undefined *puVar1;
  undefined uVar2;
  undefined *puVar3;
  bool bVar4;
  undefined8 uVar5;
  char cVar6;
  int iVar7;
  int iVar8;
  uint uVar9;
  long lVar10;
  undefined8 uVar11;
  ulong uVar12;
  void *pvVar13;
  undefined4 *puVar14;
  uint uVar15;
  ulong uVar16;
  short *psVar17;
  undefined *puVar18;
  void *pvVar19;
  byte bVar20;
  undefined8 *puVar21;
  long lVar22;
  int iVar23;
  short sVar24;
  undefined2 *puVar25;
  short sVar26;
  undefined *puVar27;
  ulong uVar28;
  int *piVar29;
  double *pdVar30;
  long lVar31;
  long lVar32;
  double *pdVar33;
  double dVar34;
  double dVar41;
  undefined auVar35 [16];
  undefined auVar36 [16];
  undefined auVar37 [16];
  undefined auVar38 [16];
  undefined auVar39 [16];
  undefined auVar40 [16];
  float fVar42;
  float fVar43;
  undefined auVar44 [16];
  float fVar46;
  undefined auVar45 [16];
  float fVar47;
  float in_xmmTmp2_Dd;
  undefined8 in_stack_fffffffffffff848;
  undefined4 uVar48;
  undefined local_758 [16];
  undefined8 local_748;
  ulong local_740;
  undefined local_738 [8];
  float fStack_730;
  float fStack_72c;
  undefined8 local_720;
  long local_718;
  undefined8 *local_710;
  undefined4 local_704;
  int *local_700;
  undefined local_6f8 [16];
  undefined2 *local_6e8 [2];
  int local_6d4;
  int *local_6d0;
  double local_6c8;
  ulong local_6c0;
  uint local_6b4;
  undefined local_6ad;
  float local_6ac;
  undefined4 local_6a8;
  undefined8 local_6a4;
  undefined4 local_698;
  undefined8 local_694;
  long local_38;
  
  local_38 = *(long *)PTR____stack_chk_guard_10096e758;
  local_700 = param_3;
  local_6d0 = param_4;
  local_6c8 = param_1;
  (**(code **)(*(long *)(param_2 + 0x110) + 0x10))();
  local_720 = 0xbff0000000000000;
  lVar32 = *(long *)(param_2 + 0x70);
  lVar10 = *(long *)(param_2 + 0x78);
  local_748 = 0;
  local_758 = ZEXT816(0);
  local_6e8[0] = (undefined2 *)0x0;
  local_698 = (uint)local_698._2_2_ << 0x10;
  local_718 = param_2;
  local_6f8 = local_758;
  FUN_100433712(local_758,((long)*(short *)(param_2 + 0x26) - (long)*(short *)(param_2 + 0x24)) + 1)
  ;
  lVar22 = local_718;
  if (lVar32 == lVar10) {
LAB_1004328fe:
    _local_738 = ZEXT816(0);
    iVar23 = 0;
    uVar28 = 0;
    uVar16 = 0;
  }
  else {
    pdVar30 = *(double **)(local_718 + 0x70);
    pdVar33 = *(double **)(local_718 + 0x78);
    if (pdVar30 == pdVar33) goto LAB_1004328fe;
    bVar4 = true;
    do {
      if (local_6c8 - *pdVar30 <= (double)*(float *)(lVar22 + 0x3c)) {
        sVar24 = *(short *)(pdVar30 + 1);
        if ((*(short *)(lVar22 + 0x26) < sVar24) || (sVar24 < *(short *)(lVar22 + 0x24))) {
          bVar4 = false;
        }
        else {
          psVar17 = (short *)(local_758._0_8_ + ((long)sVar24 - (long)*(short *)(lVar22 + 0x24)) * 2
                             );
          *psVar17 = *psVar17 + 1;
          if ((undefined2 *)local_6f8._8_8_ == local_6e8[0]) {
            uVar16 = local_6f8._8_8_ - local_6f8._0_8_;
            if ((long)uVar16 < -2) {
              FUN_100433bc6(local_6f8);
              do {
                invalidInstructionException();
              } while( true );
            }
            lVar32 = (long)uVar16 >> 1;
            uVar28 = lVar32 + 1U;
            if (lVar32 + 1U < uVar16) {
              uVar28 = uVar16;
            }
            if (0x7ffffffffffffffd < uVar16) {
              uVar28 = 0x7fffffffffffffff;
            }
            if (uVar28 == 0) {
              auVar36 = ZEXT816(0);
              puVar25 = (undefined2 *)local_6f8._0_8_;
            }
            else {
              auVar36 = FUN_100433bd6(local_6e8);
              puVar25 = (undefined2 *)local_6f8._0_8_;
            }
            lVar10 = auVar36._0_8_;
            local_6f8._0_8_ = lVar10 + lVar32 * 2;
            *(undefined2 *)local_6f8._0_8_ = *(undefined2 *)(pdVar30 + 1);
            for (; (undefined2 *)local_6f8._8_8_ != puVar25; local_6f8._8_8_ = local_6f8._8_8_ + -2)
            {
              *(undefined2 *)(local_6f8._0_8_ + -2) = *(undefined2 *)(local_6f8._8_8_ + -2);
              local_6f8._0_8_ = local_6f8._0_8_ + -2;
            }
            local_6e8[0] = (undefined2 *)(lVar10 + auVar36._8_8_ * 2);
            local_6f8._8_8_ = lVar10 + lVar32 * 2 + 2;
            if (puVar25 != (undefined2 *)0x0) {
              operator.delete(puVar25);
            }
          }
          else {
            *(undefined2 *)local_6f8._8_8_ = *(undefined2 *)(pdVar30 + 1);
            local_6f8._8_8_ = (undefined2 *)(local_6f8._8_8_ + 2);
          }
        }
        pdVar30 = pdVar30 + 2;
        pdVar33 = *(double **)(lVar22 + 0x78);
      }
      else {
        lVar32 = (long)pdVar33 - (long)(pdVar30 + 2);
        if (lVar32 != 0) {
          _memmove(pdVar30,pdVar30 + 2,lVar32 - 4);
        }
        pdVar33 = (double *)(lVar32 + (long)pdVar30);
        *(double **)(lVar22 + 0x78) = pdVar33;
      }
    } while ((pdVar30 != pdVar33) && (bVar4));
    _local_738 = ZEXT816(0);
    if ((local_6f8._0_8_ == local_6f8._8_8_) || (!bVar4)) goto LAB_1004328fe;
    std::__1::__sort<>((short *)local_6f8._0_8_,(short *)local_6f8._8_8_,(__less *)&local_698);
    uVar16 = (long)(local_6f8._8_8_ - local_6f8._0_8_) >> 1;
    auVar36._8_4_ = (int)((long)(local_6f8._8_8_ - local_6f8._0_8_) >> 0x21);
    auVar36._0_8_ = uVar16;
    auVar36._12_4_ = 0x45300000;
    uVar15 = (uint)uVar16;
    dVar41 = auVar36._8_8_ - 1.934281311383407e+25;
    dVar34 = ((double)CONCAT44(0x43300000,uVar15) - 4503599627370496.0) + dVar41;
    auVar35._8_8_ = dVar34 + dVar41;
    auVar44._0_8_ = dVar34 * 0.1;
    auVar44._8_8_ = 0;
    auVar44 = roundsd(auVar44,auVar44,10);
    auVar35._0_8_ = dVar34 * 0.4;
    auVar36 = roundsd(auVar35,auVar35,10);
    sVar24 = (short)(int)auVar44._0_8_;
    sVar26 = (short)(int)auVar36._0_8_;
    iVar23 = uVar15 - ((int)sVar26 + (int)sVar24);
    if (iVar23 < 1) {
      auVar37 = ZEXT816(0);
      for (psVar17 = (short *)local_6f8._0_8_; psVar17 != (short *)local_6f8._8_8_;
          psVar17 = psVar17 + 1) {
        auVar37._0_4_ = auVar37._0_4_ + (float)(int)*psVar17;
      }
      if ((long)uVar16 < 0) {
        fVar42 = (float)((ulong)(uVar15 & 1) | uVar16 >> 1);
        fVar42 = fVar42 + fVar42;
      }
      else {
        fVar42 = (float)uVar16;
      }
    }
    else {
      auVar37 = ZEXT816(0);
      for (psVar17 = (short *)(local_6f8._0_8_ + (long)sVar26 * 2);
          psVar17 != (short *)(local_6f8._8_8_ + -(long)sVar24 * 2); psVar17 = psVar17 + 1) {
        auVar37._0_4_ = auVar37._0_4_ + (float)(int)*psVar17;
      }
      fVar42 = (float)iVar23;
    }
    sVar24 = (short)(int)(auVar37._0_4_ / fVar42);
    local_720 = ___exp10((double)((float)(int)sVar24 - *(float *)(lVar22 + 0x18)) / -18.0);
    local_720 = FUN_1002da544(local_6c8,lVar22 + 0xb0,&local_720,local_700);
    local_6f8._8_8_ = local_6f8._0_8_;
    iVar7 = (int)*(short *)(lVar22 + 0x26) - (int)*(short *)(lVar22 + 0x24);
    if (iVar7 < 0) {
      uVar28 = 0;
      local_6c0 = 0;
      iVar23 = 0;
    }
    else {
      iVar23 = 0;
      local_6c0 = 0;
      uVar28 = 0;
      sVar26 = 0;
      do {
        fVar42 = (float)(int)sVar26 + (float)(int)*(short *)(lVar22 + 0x24);
        if (*(float *)(lVar22 + 0x6c) <= fVar42) {
          if (*(float *)(lVar22 + 0x68) <= fVar42) {
            iVar8 = (int)*(short *)(local_758._0_8_ + (long)sVar26 * 2);
            if (*(float *)(lVar22 + 100) <= fVar42) {
              uVar28 = (ulong)(uint)((int)uVar28 + iVar8);
            }
            else {
              local_6c0 = (ulong)(uint)((int)local_6c0 + iVar8);
            }
          }
          else {
            iVar23 = iVar23 + *(short *)(local_758._0_8_ + (long)sVar26 * 2);
          }
        }
        sVar26 = sVar26 + 1;
      } while (sVar26 <= iVar7);
    }
    iVar7 = (int)local_6c0;
    iVar8 = iVar7 + (int)uVar28 + iVar23;
    uVar16 = local_6c0;
    if (iVar8 != 0) {
      auVar38._0_4_ = (float)iVar8;
      auVar36 = insertps(ZEXT416((uint)(float)(int)uVar28),ZEXT416((uint)(float)iVar7),0x1c);
      auVar36 = insertps(auVar36,ZEXT416((uint)(float)iVar23),0x34);
      auVar38._4_4_ = auVar38._0_4_;
      auVar38._8_4_ = auVar38._0_4_;
      auVar38._12_4_ = auVar38._0_4_;
      _local_738 = divps(auVar36,auVar38);
      fVar42 = *(float *)(lVar22 + 0x28);
      fVar43 = SUB164(_local_738,4);
      fVar46 = SUB164(_local_738,0xc);
      auVar39._0_4_ = (uint)(fVar42 < SUB164(_local_738,0)) * -0x80000000;
      auVar39._4_4_ = (uint)(fVar42 < fVar43) * -0x80000000;
      auVar39._8_4_ = (uint)(fVar42 < fVar46) * -0x80000000;
      auVar39._12_4_ = (uint)(fVar42 < in_xmmTmp2_Dd) * -0x80000000;
      uVar15 = movmskps(iVar7,auVar39);
      if (uVar15 == 0) {
        auVar40._4_4_ = -(uint)(*(float *)(lVar22 + 0x2c) < fVar43 + SUB164(_local_738,0));
        auVar40._0_4_ = -(uint)(*(float *)(lVar22 + 0x2c) < fVar46 + fVar43);
        auVar40._8_4_ = -(uint)(0.0 < fVar46 + fVar46);
        auVar40._12_4_ = -(uint)(0.0 < in_xmmTmp2_Dd);
        auVar36 = pmovsxdq(auVar40,auVar40);
        uVar15 = movmskpd(iVar8,auVar36);
        local_6b4 = 2;
        if ((uVar15 & 1) == 0) {
          uVar9 = uVar15 >> 1 & 0x7f;
          goto LAB_100433090;
        }
      }
      else {
        uVar9 = 2;
        if ((uVar15 & 2) == 0) {
          uVar9 = uVar15 & 1;
        }
        local_6b4 = 3;
        if ((uVar15 & 8) == 0) {
LAB_100433090:
          local_6b4 = uVar9;
          if (uVar9 == 0) goto LAB_100432904;
        }
      }
      iVar7 = *local_700;
      if (((iVar7 - 1U < 2) || (iVar7 == 7)) || ((iVar7 == 3 && (local_700[1] == 0)))) {
        dVar34 = local_6c8 - *(double *)(lVar22 + 0x90);
        if (dVar34 <= (double)*(float *)(lVar22 + 0x4c)) goto LAB_10043312e;
        dVar34 = (double)_exp((double)((ulong)(dVar34 - (double)*(float *)(lVar22 + 0x4c)) ^
                                      0x8000000000000000) / (double)*(float *)(lVar22 + 0x50));
        local_6ac = (float)dVar34;
        fVar42 = *(float *)(lVar22 + 0x54);
        if (local_6ac < *(float *)(lVar22 + 0x54)) goto LAB_100433136;
      }
      else {
        *(double *)(lVar22 + 0x90) = local_6c8;
LAB_10043312e:
        fVar42 = 1.0;
LAB_100433136:
        local_6ac = fVar42;
      }
      dVar34 = local_6c8 - *(double *)(lVar22 + 0x88);
      *(double *)(lVar22 + 0x88) = local_6c8;
      fVar42 = (float)local_6b4;
      if ((local_6b4 == 1) || ((double)*(float *)(lVar22 + 0x58) < dVar34)) {
        *(double *)(lVar22 + 0x90) = local_6c8;
        *(undefined4 *)(lVar22 + 0x9c) = *(undefined4 *)(lVar22 + 0x40);
        *(float *)(lVar22 + 0xa0) = fVar42;
        fVar43 = fVar42;
      }
      else {
        fVar46 = *(float *)(lVar22 + 0x9c);
        fVar47 = fVar46 / (*(float *)(lVar22 + 0x48) + fVar46);
        fVar43 = (fVar42 - *(float *)(lVar22 + 0xa0)) * fVar47 + *(float *)(lVar22 + 0xa0);
        *(float *)(lVar22 + 0xa0) = fVar43;
        *(float *)(lVar22 + 0x9c) =
             (float)((double)local_6ac * (double)local_6ac *
                     dVar34 * dVar34 * (double)*(float *)(lVar22 + 0x44) * 0.5 +
                    (double)((1.0 - fVar47) * fVar46));
      }
      if ((fVar43 < 1.0) || (3.0 < fVar43)) {
        *(undefined8 *)(lVar22 + 0x88) = 0xbff0000000000000;
        *(double *)(lVar22 + 0x90) = local_6c8;
        bVar20 = *(byte *)(lVar22 + 0xa4);
        uVar16 = (ulong)bVar20;
      }
      else {
        auVar36 = ZEXT416((uint)fVar43 & 0x80000000) | _DAT_1007a7290;
        auVar45._4_12_ = auVar36._4_12_;
        auVar45._0_4_ = auVar36._0_4_ + fVar43;
        auVar36 = roundss(ZEXT816(0),auVar45,0xb);
        uVar15 = (uint)auVar36._0_4_;
        iVar8 = uVar15 - local_6b4;
        iVar7 = -iVar8;
        if (0 < iVar8) {
          iVar7 = iVar8;
        }
        if (*(int *)(lVar22 + 0x60) < iVar7) {
          iVar7 = *(int *)(lVar22 + 0x98);
          *(int *)(lVar22 + 0x98) = iVar7 + 1;
          if (*(int *)(lVar22 + 0x5c) <= iVar7) {
            *(double *)(lVar22 + 0x90) = local_6c8;
            *(undefined4 *)(lVar22 + 0x9c) = *(undefined4 *)(lVar22 + 0x40);
            *(float *)(lVar22 + 0xa0) = fVar42;
          }
        }
        else {
          *(undefined4 *)(lVar22 + 0x98) = 0;
        }
        if (*(char *)(lVar22 + 0xa4) == '\0') {
          if (uVar15 == 1) {
            *(undefined2 *)(lVar22 + 0xa4) = 1;
            *(undefined8 *)(lVar22 + 0xa8) = 0;
            goto LAB_100433346;
          }
LAB_10043337c:
          bVar20 = 0;
          uVar16 = (ulong)uVar15;
        }
        else if (uVar15 == 1) {
          *(undefined4 *)(lVar22 + 0xa8) = 0;
LAB_100433346:
          uVar16 = 1;
          bVar20 = 1;
        }
        else {
          uVar16 = 1;
          bVar20 = 1;
          if ((1 < (int)uVar15) &&
             (iVar7 = *(int *)(lVar22 + 0xa8), *(int *)(lVar22 + 0xa8) = iVar7 + 1, 0 < iVar7)) {
            *(undefined *)(lVar22 + 0xa4) = 0;
            *(undefined4 *)(lVar22 + 0xa8) = 0;
            goto LAB_10043337c;
          }
        }
      }
      iVar7 = (int)uVar16;
      if ((*(char *)(lVar22 + 0xa5) == '\0') || (bVar20 != 0)) {
        if (iVar7 == 2) {
          *(undefined *)(lVar22 + 0xa5) = 1;
          goto LAB_1004333f4;
        }
      }
      else {
        if (iVar7 == 2) {
LAB_1004333f4:
          uVar16 = 2;
        }
        else {
          iVar8 = *(int *)(lVar22 + 0xac);
          *(int *)(lVar22 + 0xac) = iVar8 + 1;
          if ((local_6ac != 1.0 || iVar8 < 1) && (iVar7 = 2, iVar8 < 2)) goto LAB_100433401;
          *(undefined *)(lVar22 + 0xa5) = 0;
        }
        *(undefined4 *)(lVar22 + 0xac) = 0;
        iVar7 = (int)uVar16;
      }
LAB_100433401:
      *local_6d0 = iVar7;
      *(undefined8 *)(local_6d0 + 2) = local_720;
      *(short *)(local_6d0 + 4) = sVar24;
      lVar32 = *(long *)(lVar22 + 0x70);
      lVar10 = *(long *)(lVar22 + 0x78);
      local_704 = (undefined4)CONCAT71((int7)(uVar16 >> 8),1);
      piVar29 = local_6d0;
      uVar16 = local_6c0;
      local_740 = uVar28;
      if (lVar32 != lVar10) {
        local_710 = (undefined8 *)(local_6d0 + 6);
        local_6d4 = iVar23;
        do {
          uVar2 = *(undefined *)(lVar32 + 8);
          puVar27 = *(undefined **)(piVar29 + 8);
          if (puVar27 < *(undefined **)(piVar29 + 10)) {
            *puVar27 = uVar2;
            *(undefined **)(piVar29 + 8) = puVar27 + 1;
          }
          else {
            puVar3 = (undefined *)*local_710;
            lVar31 = (long)puVar27 - (long)puVar3;
            uVar28 = lVar31 + 1;
            local_6ad = uVar2;
            if ((long)uVar28 < 0) {
                    /* WARNING: Subroutine does not return */
              FUN_100450e54(local_710);
            }
            uVar12 = (long)*(undefined **)(piVar29 + 10) - (long)puVar3;
            uVar16 = uVar12 * 2;
            if (uVar28 < uVar16) {
              uVar28 = uVar16;
            }
            if (0x3ffffffffffffffe < uVar12) {
              uVar28 = 0x7fffffffffffffff;
            }
            if (uVar28 == 0) {
              pvVar13 = (void *)0x0;
            }
            else {
              pvVar13 = operator.new(uVar28);
            }
            uVar16 = local_6c0;
            piVar29 = local_6d0;
            lVar22 = local_718;
            *(undefined *)((long)pvVar13 + lVar31) = local_6ad;
            if (puVar27 == puVar3) {
              pvVar19 = (void *)((long)pvVar13 + lVar31);
            }
            else {
              puVar18 = (undefined *)((long)pvVar13 + lVar31);
              do {
                puVar18 = puVar18 + -1;
                puVar1 = puVar27 + -1;
                puVar27 = puVar27 + -1;
                *puVar18 = *puVar1;
              } while (puVar27 != puVar3);
              puVar27 = (undefined *)*local_710;
              pvVar19 = pvVar13;
            }
            *(void **)(local_6d0 + 6) = pvVar19;
            *(long *)(local_6d0 + 8) = (long)pvVar13 + lVar31 + 1;
            *(ulong *)(local_6d0 + 10) = uVar28 + (long)pvVar13;
            if (puVar27 != (undefined *)0x0) {
              operator.delete(puVar27);
            }
          }
          lVar32 = lVar32 + 0x10;
          uVar28 = local_740;
          iVar23 = local_6d4;
        } while (lVar32 != lVar10);
      }
      goto LAB_10043293e;
    }
  }
LAB_100432904:
  *local_6d0 = 0;
  *(undefined8 *)(local_6d0 + 2) = 0xbff0000000000000;
  *(undefined2 *)(local_6d0 + 4) = 0;
  local_6b4 = 0;
  local_6ac = 0.0;
  local_704 = 0;
  piVar29 = local_6d0;
LAB_10043293e:
  if (DAT_100a01e38 != -1) {
    _dispatch_once(&DAT_100a01e38,&PTR___NSConcreteGlobalBlock_100988e98);
  }
  if (DAT_1009fda20 != '\0') {
    local_6d4 = iVar23;
    local_6c0 = uVar16;
    local_6d0 = (int *)_objc_autoreleasePoolPush();
    uVar11 = (*(code *)PTR__objc_msgSend_10096ef90)(&_OBJC_CLASS_$_NSMutableString,"string");
    (*(code *)PTR__objc_msgSend_10096ef90)(local_6c8,uVar11,"appendFormat:",&cf_time,%f,);
    if ((*param_5 & 1) == 0) {
      param_5 = param_5 + 1;
    }
    else {
      param_5 = *(byte **)(param_5 + 0x10);
    }
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_uuid,%s,,param_5);
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_major,%hd,,*param_6);
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_major,%hd,,*param_7);
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_observable,%d,,local_6b4);
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_range,%d,,*piVar29);
    (*(code *)PTR__objc_msgSend_10096ef90)
              (*(undefined8 *)(piVar29 + 2),uVar11,"appendFormat:",&cf_unc,%f,);
    (*(code *)PTR__objc_msgSend_10096ef90)
              (uVar11,"appendFormat:",&cf_filteredRSSI,%d,,(int)*(short *)(piVar29 + 4));
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_activity,%d,,*local_700);
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_confidence,%d,,local_700[1]);
    (*(code *)PTR__objc_msgSend_10096ef90)
              ((double)local_6ac,uVar11,"appendFormat:",&cf_activityFactor,%f,);
    (*(code *)PTR__objc_msgSend_10096ef90)
              ((double)*(float *)(lVar22 + 0x9c),uVar11,"appendFormat:",&cf_fFilterPk_pre,%f,);
    (*(code *)PTR__objc_msgSend_10096ef90)
              ((double)*(float *)(lVar22 + 0x18),uVar11,"appendFormat:",&cf_tx,%f,);
    (*(code *)PTR__objc_msgSend_10096ef90)
              (uVar11,"appendFormat:",&cf_cntImmediate,%d,,uVar28 & 0xffffffff);
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_cntNear,%d,,local_6c0);
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_cntMid,%d,,0);
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendFormat:",&cf_cntFar,%d,,local_6d4);
    (*(code *)PTR__objc_msgSend_10096ef90)
              ((double)(float)local_738._0_4_,uVar11,"appendFormat:",&cf_pImmediate,%f,);
    (*(code *)PTR__objc_msgSend_10096ef90)
              ((double)(float)local_738._4_4_,uVar11,"appendFormat:",&cf_pNear,%f,);
    (*(code *)PTR__objc_msgSend_10096ef90)((double)fStack_730,uVar11,"appendFormat:",&cf_pMid,%f,);
    (*(code *)PTR__objc_msgSend_10096ef90)((double)fStack_72c,uVar11,"appendFormat:",&cf_pFar,%f,);
    (*(code *)PTR__objc_msgSend_10096ef90)
              (uVar11,"appendFormat:",&cf_numberrssi,%lu,,
               *(long *)(lVar22 + 0x78) - *(long *)(lVar22 + 0x70) >> 4);
    (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"appendString:",&cf_rssi,);
    puVar27 = PTR__objc_msgSend_10096ef90;
    uVar48 = (undefined4)((ulong)in_stack_fffffffffffff848 >> 0x20);
    puVar21 = *(undefined8 **)(lVar22 + 0x70);
    if (puVar21 != *(undefined8 **)(lVar22 + 0x78)) {
      do {
        (*(code *)puVar27)(*puVar21,uVar11,"appendFormat:",&cf_%f,%d,%d,,
                           (int)*(short *)(puVar21 + 1),(int)*(short *)((long)puVar21 + 10));
        uVar48 = (undefined4)((ulong)in_stack_fffffffffffff848 >> 0x20);
        puVar21 = puVar21 + 2;
      } while (puVar21 != *(undefined8 **)(local_718 + 0x78));
    }
    if (DAT_1009fa150 != -1) {
      _dispatch_once(&DAT_1009fa150,&PTR___NSConcreteGlobalBlock_100988eb8);
    }
    uVar5 = DAT_1009fc2a0;
    cVar6 = _os_log_type_enabled(DAT_1009fc2a0,2);
    if (cVar6 != '\0') {
      local_694 = (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"UTF8String");
      local_698 = 0x8210103;
      __os_log_impl(0x100000000,uVar5,2,"iB: %{private}s",&local_698,0xc);
    }
    iVar23 = FUN_10002e384(0x6b,2);
    if (iVar23 != 0) {
      ___bzero(&local_698,0x65c);
      if (DAT_1009fa150 != -1) {
        _dispatch_once(&DAT_1009fa150,&PTR___NSConcreteGlobalBlock_100988eb8);
      }
      uVar5 = DAT_1009fc2a0;
      local_6a4 = (*(code *)PTR__objc_msgSend_10096ef90)(uVar11,"UTF8String");
      local_6a8 = 0x8210103;
      puVar14 = (undefined4 *)
                __os_log_send_and_compose_impl
                          (2,0,&local_698,0x65c,0x100000000,uVar5,CONCAT44(uVar48,2),
                           "iB: %{private}s",&local_6a8,0xc);
      FUN_10002e235("Generic",1,0,2,
                    "bool CLBTLERSSIRangeCalculator::getRangeMeasurement(const CLMotionActivity &, C FTimeInterval, CLBTLERSSIRangeCalculator_Type::RangeMeasurement &, const std::st ring &, const uint16_t &, const uint16_t &)"
                    ,"%s\n",puVar14);
      if (puVar14 != &local_698) {
        _free(puVar14);
      }
    }
    _objc_autoreleasePoolPop(local_6d0);
  }
  if ((void *)local_6f8._0_8_ != (void *)0x0) {
    local_6f8._8_8_ = local_6f8._0_8_;
    operator.delete((void *)local_6f8._0_8_);
  }
  if ((void *)local_758._0_8_ != (void *)0x0) {
    local_758._8_8_ = local_758._0_8_;
    operator.delete((void *)local_758._0_8_);
  }
  (**(code **)(*(long *)(param_2 + 0x110) + 0x18))();
                    /* WARNING: Read-only address (ram,0x0001007a7290) is written */
  if (*(long *)PTR____stack_chk_guard_10096e758 == local_38) {
    return local_704;
  }
                    /* WARNING: Subroutine does not return */
  ___stack_chk_fail();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant