; LLVM IR from devicehive/esp8266-firmware :: firmware-src/sources (dhzc_post)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@__const.dhzc_post_parse.mode = external hidden unnamed_addr constant [6 x i8], align 1
@__const.dhzc_post_parse.ssid = external hidden unnamed_addr constant [6 x i8], align 1
@__const.dhzc_post_parse.pass = external hidden unnamed_addr constant [6 x i8], align 1
@__const.dhzc_post_parse.url = external hidden unnamed_addr constant [5 x i8], align 1
@__const.dhzc_post_parse.id = external hidden unnamed_addr constant [4 x i8], align 1
@__const.dhzc_post_parse.key = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @dhzc_post_parse(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca [6 x i8], align 1
  %7 = alloca [6 x i8], align 1
  %8 = alloca [6 x i8], align 1
  %9 = alloca [5 x i8], align 1
  %10 = alloca [4 x i8], align 1
  %11 = alloca [5 x i8], align 1
  %12 = alloca i32, align 4
  %13 = alloca [2048 x i8], align 16
  %14 = alloca i8, align 1
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  %23 = load i32, ptr %5, align 4, !tbaa !9
  %24 = icmp eq i32 %23, 0
  br i1 %24, label %25, label %26

25:                                               ; preds = %2
  store ptr @.str, ptr %3, align 8
  br label %322

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 6, ptr %6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %6, ptr align 1 @__const.dhzc_post_parse.mode, i64 6, i1 false)
  call void @llvm.lifetime.start.p0(i64 6, ptr %7) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %7, ptr align 1 @__const.dhzc_post_parse.ssid, i64 6, i1 false)
  call void @llvm.lifetime.start.p0(i64 6, ptr %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %8, ptr align 1 @__const.dhzc_post_parse.pass, i64 6, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %9) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %9, ptr align 1 @__const.dhzc_post_parse.url, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %10, ptr align 1 @__const.dhzc_post_parse.id, i64 4, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr %11) #4
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %11, ptr align 1 @__const.dhzc_post_parse.key, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #4
  store i8 0, ptr %14, align 1, !tbaa !11
  br label %27

27:                                               ; preds = %315, %26
  %28 = load i32, ptr %12, align 4, !tbaa !9
  %29 = load i32, ptr %5, align 4, !tbaa !9
  %30 = icmp ult i32 %28, %29
  br i1 %30, label %31, label %316

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  store i32 2048, ptr %15, align 4, !tbaa !9
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = load i32, ptr %12, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds i8, ptr %32, i64 %34
  %36 = getelementptr inbounds [6 x i8], ptr %6, i64 0, i64 0
  %37 = call i32 @ets_strncmp(ptr noundef %35, ptr noundef %36, i32 noundef 5)
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %86

39:                                               ; preds = %31
  %40 = load i32, ptr %12, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 5
  %43 = trunc i64 %42 to i32
  store i32 %43, ptr %12, align 4, !tbaa !9
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = load i32, ptr %5, align 4, !tbaa !9
  %46 = icmp ule i32 %44, %45
  br i1 %46, label %47, label %85

47:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = load i32, ptr %12, align 4, !tbaa !9
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds i8, ptr %48, i64 %50
  %52 = load i32, ptr %5, align 4, !tbaa !9
  %53 = load i32, ptr %12, align 4, !tbaa !9
  %54 = sub i32 %52, %53
  %55 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %56 = call i32 @read_value(ptr noundef %51, i32 noundef %54, ptr noundef %55, ptr noundef %15, ptr noundef null)
  store i32 %56, ptr %16, align 4, !tbaa !9
  %57 = load i32, ptr %16, align 4, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %63

59:                                               ; preds = %47
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = load i32, ptr %12, align 4, !tbaa !9
  %62 = add i32 %61, %60
  store i32 %62, ptr %12, align 4, !tbaa !9
  br label %63

63:                                               ; preds = %59, %47
  %64 = load i32, ptr %16, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %71

66:                                               ; preds = %63
  %67 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %68 = call i32 @ets_strcmp(ptr noundef %67, ptr noundef @.str.1)
  %69 = icmp eq i32 %68, 0
  br i1 %69, label %70, label %71

70:                                               ; preds = %66
  call void @dhsettings_set_wifi_mode(i32 noundef 0)
  br label %81

71:                                               ; preds = %66, %63
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 0
  br i1 %73, label %74, label %79

74:                                               ; preds = %71
  %75 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %76 = call i32 @ets_strcmp(ptr noundef %75, ptr noundef @.str.2)
  %77 = icmp eq i32 %76, 0
  br i1 %77, label %78, label %79

78:                                               ; preds = %74
  call void @dhsettings_set_wifi_mode(i32 noundef 1)
  br label %80

79:                                               ; preds = %74, %71
  store ptr @.str.3, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %82

80:                                               ; preds = %78
  br label %81

81:                                               ; preds = %80, %70
  store i8 1, ptr %14, align 1, !tbaa !11
  store i32 0, ptr %17, align 4
  br label %82

82:                                               ; preds = %81, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  %83 = load i32, ptr %17, align 4
  switch i32 %83, label %313 [
    i32 0, label %84
  ]

84:                                               ; preds = %82
  br label %85

85:                                               ; preds = %84, %39
  br label %312

86:                                               ; preds = %31
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = load i32, ptr %12, align 4, !tbaa !9
  %89 = zext i32 %88 to i64
  %90 = getelementptr inbounds i8, ptr %87, i64 %89
  %91 = getelementptr inbounds [6 x i8], ptr %7, i64 0, i64 0
  %92 = call i32 @ets_strncmp(ptr noundef %90, ptr noundef %91, i32 noundef 5)
  %93 = icmp eq i32 %92, 0
  br i1 %93, label %94, label %128

94:                                               ; preds = %86
  %95 = load i32, ptr %12, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = add i64 %96, 5
  %98 = trunc i64 %97 to i32
  store i32 %98, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = load i32, ptr %5, align 4, !tbaa !9
  %101 = icmp ule i32 %99, %100
  br i1 %101, label %102, label %127

102:                                              ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load i32, ptr %12, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = getelementptr inbounds i8, ptr %103, i64 %105
  %107 = load i32, ptr %5, align 4, !tbaa !9
  %108 = load i32, ptr %12, align 4, !tbaa !9
  %109 = sub i32 %107, %108
  %110 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %111 = call i32 @read_value(ptr noundef %106, i32 noundef %109, ptr noundef %110, ptr noundef %15, ptr noundef null)
  store i32 %111, ptr %18, align 4, !tbaa !9
  %112 = load i32, ptr %18, align 4, !tbaa !9
  %113 = icmp eq i32 %112, 0
  br i1 %113, label %114, label %115

114:                                              ; preds = %102
  store ptr @.str.4, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %124

115:                                              ; preds = %102
  %116 = load i32, ptr %15, align 4, !tbaa !9
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = add i32 %117, %116
  store i32 %118, ptr %12, align 4, !tbaa !9
  %119 = load i32, ptr %15, align 4, !tbaa !9
  %120 = icmp ugt i32 %119, 31
  br i1 %120, label %121, label %122

121:                                              ; preds = %115
  store ptr @.str.5, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %124

122:                                              ; preds = %115
  %123 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void @dhsettings_set_wifi_ssid(ptr noundef %123)
  store i8 1, ptr %14, align 1, !tbaa !11
  store i32 0, ptr %17, align 4
  br label %124

124:                                              ; preds = %122, %121, %114
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %125 = load i32, ptr %17, align 4
  switch i32 %125, label %313 [
    i32 0, label %126
  ]

126:                                              ; preds = %124
  br label %127

127:                                              ; preds = %126, %94
  br label %311

128:                                              ; preds = %86
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = load i32, ptr %12, align 4, !tbaa !9
  %131 = zext i32 %130 to i64
  %132 = getelementptr inbounds i8, ptr %129, i64 %131
  %133 = getelementptr inbounds [6 x i8], ptr %8, i64 0, i64 0
  %134 = call i32 @ets_strncmp(ptr noundef %132, ptr noundef %133, i32 noundef 5)
  %135 = icmp eq i32 %134, 0
  br i1 %135, label %136, label %174

136:                                              ; preds = %128
  %137 = load i32, ptr %12, align 4, !tbaa !9
  %138 = zext i32 %137 to i64
  %139 = add i64 %138, 5
  %140 = trunc i64 %139 to i32
  store i32 %140, ptr %12, align 4, !tbaa !9
  %141 = load i32, ptr %12, align 4, !tbaa !9
  %142 = load i32, ptr %5, align 4, !tbaa !9
  %143 = icmp ule i32 %141, %142
  br i1 %143, label %144, label %173

144:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #4
  %145 = load ptr, ptr %4, align 8, !tbaa !5
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = getelementptr inbounds i8, ptr %145, i64 %147
  %149 = load i32, ptr %5, align 4, !tbaa !9
  %150 = load i32, ptr %12, align 4, !tbaa !9
  %151 = sub i32 %149, %150
  %152 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %153 = call i32 @read_value(ptr noundef %148, i32 noundef %151, ptr noundef %152, ptr noundef %15, ptr noundef null)
  store i32 %153, ptr %19, align 4, !tbaa !9
  %154 = load i32, ptr %19, align 4, !tbaa !9
  %155 = icmp eq i32 %154, 0
  br i1 %155, label %156, label %157

156:                                              ; preds = %144
  store ptr @.str.6, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %170

157:                                              ; preds = %144
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = add i32 %159, %158
  store i32 %160, ptr %12, align 4, !tbaa !9
  %161 = load i32, ptr %15, align 4, !tbaa !9
  %162 = icmp ne i32 %161, 0
  br i1 %162, label %163, label %169

163:                                              ; preds = %157
  %164 = load i32, ptr %15, align 4, !tbaa !9
  %165 = icmp ugt i32 %164, 63
  br i1 %165, label %166, label %167

166:                                              ; preds = %163
  store ptr @.str.7, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %170

167:                                              ; preds = %163
  %168 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void @dhsettings_set_wifi_password(ptr noundef %168)
  store i8 1, ptr %14, align 1, !tbaa !11
  br label %169

169:                                              ; preds = %167, %157
  store i32 0, ptr %17, align 4
  br label %170

170:                                              ; preds = %169, %166, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #4
  %171 = load i32, ptr %17, align 4
  switch i32 %171, label %313 [
    i32 0, label %172
  ]

172:                                              ; preds = %170
  br label %173

173:                                              ; preds = %172, %136
  br label %310

174:                                              ; preds = %128
  %175 = load ptr, ptr %4, align 8, !tbaa !5
  %176 = load i32, ptr %12, align 4, !tbaa !9
  %177 = zext i32 %176 to i64
  %178 = getelementptr inbounds i8, ptr %175, i64 %177
  %179 = getelementptr inbounds [5 x i8], ptr %9, i64 0, i64 0
  %180 = call i32 @ets_strncmp(ptr noundef %178, ptr noundef %179, i32 noundef 4)
  %181 = icmp eq i32 %180, 0
  br i1 %181, label %182, label %216

182:                                              ; preds = %174
  %183 = load i32, ptr %12, align 4, !tbaa !9
  %184 = zext i32 %183 to i64
  %185 = add i64 %184, 4
  %186 = trunc i64 %185 to i32
  store i32 %186, ptr %12, align 4, !tbaa !9
  %187 = load i32, ptr %12, align 4, !tbaa !9
  %188 = load i32, ptr %5, align 4, !tbaa !9
  %189 = icmp ule i32 %187, %188
  br i1 %189, label %190, label %215

190:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = load i32, ptr %12, align 4, !tbaa !9
  %193 = zext i32 %192 to i64
  %194 = getelementptr inbounds i8, ptr %191, i64 %193
  %195 = load i32, ptr %5, align 4, !tbaa !9
  %196 = load i32, ptr %12, align 4, !tbaa !9
  %197 = sub i32 %195, %196
  %198 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %199 = call i32 @read_value(ptr noundef %194, i32 noundef %197, ptr noundef %198, ptr noundef %15, ptr noundef @dhsettings_server_filter)
  store i32 %199, ptr %20, align 4, !tbaa !9
  %200 = load i32, ptr %20, align 4, !tbaa !9
  %201 = icmp eq i32 %200, 0
  br i1 %201, label %202, label %203

202:                                              ; preds = %190
  store ptr @.str.8, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %212

203:                                              ; preds = %190
  %204 = load i32, ptr %15, align 4, !tbaa !9
  %205 = load i32, ptr %12, align 4, !tbaa !9
  %206 = add i32 %205, %204
  store i32 %206, ptr %12, align 4, !tbaa !9
  %207 = load i32, ptr %15, align 4, !tbaa !9
  %208 = icmp ugt i32 %207, 383
  br i1 %208, label %209, label %210

209:                                              ; preds = %203
  store ptr @.str.9, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %212

210:                                              ; preds = %203
  %211 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void @dhsettings_set_devicehive_server(ptr noundef %211)
  store i8 1, ptr %14, align 1, !tbaa !11
  store i32 0, ptr %17, align 4
  br label %212

212:                                              ; preds = %210, %209, %202
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  %213 = load i32, ptr %17, align 4
  switch i32 %213, label %313 [
    i32 0, label %214
  ]

214:                                              ; preds = %212
  br label %215

215:                                              ; preds = %214, %182
  br label %309

216:                                              ; preds = %174
  %217 = load ptr, ptr %4, align 8, !tbaa !5
  %218 = load i32, ptr %12, align 4, !tbaa !9
  %219 = zext i32 %218 to i64
  %220 = getelementptr inbounds i8, ptr %217, i64 %219
  %221 = getelementptr inbounds [4 x i8], ptr %10, i64 0, i64 0
  %222 = call i32 @ets_strncmp(ptr noundef %220, ptr noundef %221, i32 noundef 3)
  %223 = icmp eq i32 %222, 0
  br i1 %223, label %224, label %258

224:                                              ; preds = %216
  %225 = load i32, ptr %12, align 4, !tbaa !9
  %226 = zext i32 %225 to i64
  %227 = add i64 %226, 3
  %228 = trunc i64 %227 to i32
  store i32 %228, ptr %12, align 4, !tbaa !9
  %229 = load i32, ptr %12, align 4, !tbaa !9
  %230 = load i32, ptr %5, align 4, !tbaa !9
  %231 = icmp ule i32 %229, %230
  br i1 %231, label %232, label %257

232:                                              ; preds = %224
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = load i32, ptr %12, align 4, !tbaa !9
  %235 = zext i32 %234 to i64
  %236 = getelementptr inbounds i8, ptr %233, i64 %235
  %237 = load i32, ptr %5, align 4, !tbaa !9
  %238 = load i32, ptr %12, align 4, !tbaa !9
  %239 = sub i32 %237, %238
  %240 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %241 = call i32 @read_value(ptr noundef %236, i32 noundef %239, ptr noundef %240, ptr noundef %15, ptr noundef @dhsettings_deviceid_filter)
  store i32 %241, ptr %21, align 4, !tbaa !9
  %242 = load i32, ptr %21, align 4, !tbaa !9
  %243 = icmp eq i32 %242, 0
  br i1 %243, label %244, label %245

244:                                              ; preds = %232
  store ptr @.str.10, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %254

245:                                              ; preds = %232
  %246 = load i32, ptr %15, align 4, !tbaa !9
  %247 = load i32, ptr %12, align 4, !tbaa !9
  %248 = add i32 %247, %246
  store i32 %248, ptr %12, align 4, !tbaa !9
  %249 = load i32, ptr %15, align 4, !tbaa !9
  %250 = icmp ugt i32 %249, 127
  br i1 %250, label %251, label %252

251:                                              ; preds = %245
  store ptr @.str.11, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %254

252:                                              ; preds = %245
  %253 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void @dhsettings_set_devicehive_deviceid(ptr noundef %253)
  store i8 1, ptr %14, align 1, !tbaa !11
  store i32 0, ptr %17, align 4
  br label %254

254:                                              ; preds = %252, %251, %244
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  %255 = load i32, ptr %17, align 4
  switch i32 %255, label %313 [
    i32 0, label %256
  ]

256:                                              ; preds = %254
  br label %257

257:                                              ; preds = %256, %224
  br label %308

258:                                              ; preds = %216
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = load i32, ptr %12, align 4, !tbaa !9
  %261 = zext i32 %260 to i64
  %262 = getelementptr inbounds i8, ptr %259, i64 %261
  %263 = getelementptr inbounds [5 x i8], ptr %11, i64 0, i64 0
  %264 = call i32 @ets_strncmp(ptr noundef %262, ptr noundef %263, i32 noundef 4)
  %265 = icmp eq i32 %264, 0
  br i1 %265, label %266, label %304

266:                                              ; preds = %258
  %267 = load i32, ptr %12, align 4, !tbaa !9
  %268 = zext i32 %267 to i64
  %269 = add i64 %268, 4
  %270 = trunc i64 %269 to i32
  store i32 %270, ptr %12, align 4, !tbaa !9
  %271 = load i32, ptr %12, align 4, !tbaa !9
  %272 = load i32, ptr %5, align 4, !tbaa !9
  %273 = icmp ule i32 %271, %272
  br i1 %273, label %274, label %303

274:                                              ; preds = %266
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #4
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = load i32, ptr %12, align 4, !tbaa !9
  %277 = zext i32 %276 to i64
  %278 = getelementptr inbounds i8, ptr %275, i64 %277
  %279 = load i32, ptr %5, align 4, !tbaa !9
  %280 = load i32, ptr %12, align 4, !tbaa !9
  %281 = sub i32 %279, %280
  %282 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %283 = call i32 @read_value(ptr noundef %278, i32 noundef %281, ptr noundef %282, ptr noundef %15, ptr noundef @dhsettings_key_filter)
  store i32 %283, ptr %22, align 4, !tbaa !9
  %284 = load i32, ptr %22, align 4, !tbaa !9
  %285 = icmp eq i32 %284, 0
  br i1 %285, label %286, label %287

286:                                              ; preds = %274
  store ptr @.str.12, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %300

287:                                              ; preds = %274
  %288 = load i32, ptr %15, align 4, !tbaa !9
  %289 = load i32, ptr %12, align 4, !tbaa !9
  %290 = add i32 %289, %288
  store i32 %290, ptr %12, align 4, !tbaa !9
  %291 = load i32, ptr %15, align 4, !tbaa !9
  %292 = icmp ne i32 %291, 0
  br i1 %292, label %293, label %299

293:                                              ; preds = %287
  %294 = load i32, ptr %15, align 4, !tbaa !9
  %295 = icmp ugt i32 %294, 1024
  br i1 %295, label %296, label %297

296:                                              ; preds = %293
  store ptr @.str.13, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %300

297:                                              ; preds = %293
  %298 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void @dhsettings_set_devicehive_key(ptr noundef %298)
  store i8 1, ptr %14, align 1, !tbaa !11
  br label %299

299:                                              ; preds = %297, %287
  store i32 0, ptr %17, align 4
  br label %300

300:                                              ; preds = %299, %296, %286
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #4
  %301 = load i32, ptr %17, align 4
  switch i32 %301, label %313 [
    i32 0, label %302
  ]

302:                                              ; preds = %300
  br label %303

303:                                              ; preds = %302, %266
  br label %307

304:                                              ; preds = %258
  %305 = load i32, ptr %12, align 4, !tbaa !9
  %306 = add i32 %305, 1
  store i32 %306, ptr %12, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %304, %303
  br label %308

308:                                              ; preds = %307, %257
  br label %309

309:                                              ; preds = %308, %215
  br label %310

310:                                              ; preds = %309, %173
  br label %311

311:                                              ; preds = %310, %127
  br label %312

312:                                              ; preds = %311, %85
  store i32 0, ptr %17, align 4
  br label %313

313:                                              ; preds = %312, %300, %254, %212, %170, %124, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  %314 = load i32, ptr %17, align 4
  switch i32 %314, label %321 [
    i32 0, label %315
  ]

315:                                              ; preds = %313
  br label %27, !llvm.loop !12

316:                                              ; preds = %27
  %317 = load i8, ptr %14, align 1, !tbaa !11
  %318 = icmp ne i8 %317, 0
  br i1 %318, label %319, label %320

319:                                              ; preds = %316
  store ptr null, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %321

320:                                              ; preds = %316
  store ptr @.str.14, ptr %3, align 8
  store i32 1, ptr %17, align 4
  br label %321

321:                                              ; preds = %320, %319, %313
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 5, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 5, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr %6) #4
  br label %322

322:                                              ; preds = %321, %25
  %323 = load ptr, ptr %3, align 8
  ret ptr %323
}

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare i32 @ets_strncmp(ptr noundef, ptr noundef, i32 noundef) #3

; Function Attrs: nounwind uwtable
declare hidden i32 @read_value(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) #0

declare i32 @ets_strcmp(ptr noundef, ptr noundef) #3

declare void @dhsettings_set_wifi_mode(i32 noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare void @dhsettings_set_wifi_ssid(ptr noundef) #3

declare void @dhsettings_set_wifi_password(ptr noundef) #3

declare i32 @dhsettings_server_filter(i8 noundef signext) #3

declare void @dhsettings_set_devicehive_server(ptr noundef) #3

declare i32 @dhsettings_deviceid_filter(i8 noundef signext) #3

declare void @dhsettings_set_devicehive_deviceid(ptr noundef) #3

declare i32 @dhsettings_key_filter(i8 noundef signext) #3

declare void @dhsettings_set_devicehive_key(ptr noundef) #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@.str = external hidden unnamed_addr constant [21 x i8], align 1
@__const.dhzc_post_parse.mode = external hidden unnamed_addr constant [6 x i8], align 1
@__const.dhzc_post_parse.ssid = external hidden unnamed_addr constant [6 x i8], align 1
@__const.dhzc_post_parse.pass = external hidden unnamed_addr constant [6 x i8], align 1
@__const.dhzc_post_parse.url = external hidden unnamed_addr constant [5 x i8], align 1
@__const.dhzc_post_parse.id = external hidden unnamed_addr constant [4 x i8], align 1
@__const.dhzc_post_parse.key = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [12 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local ptr @dhzc_post_parse(ptr noundef %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = alloca [6 x i8], align 1
  %4 = alloca [6 x i8], align 1
  %5 = alloca [6 x i8], align 1
  %6 = alloca [5 x i8], align 1
  %7 = alloca [4 x i8], align 4
  %8 = alloca [5 x i8], align 1
  %9 = alloca [2048 x i8], align 16
  %10 = alloca i32, align 4
  %11 = icmp eq i32 %1, 0
  br i1 %11, label %123, label %12

12:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %3) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %3, ptr noundef nonnull align 1 dereferenceable(6) @__const.dhzc_post_parse.mode, i64 6, i1 false)
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %4) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %4, ptr noundef nonnull align 1 dereferenceable(6) @__const.dhzc_post_parse.ssid, i64 6, i1 false)
  call void @llvm.lifetime.start.p0(i64 6, ptr nonnull %5) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(6) %5, ptr noundef nonnull align 1 dereferenceable(6) @__const.dhzc_post_parse.pass, i64 6, i1 false)
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %6) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %6, ptr noundef nonnull align 1 dereferenceable(5) @__const.dhzc_post_parse.url, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #4
  %13 = load i32, ptr @__const.dhzc_post_parse.id, align 1
  store i32 %13, ptr %7, align 4
  call void @llvm.lifetime.start.p0(i64 5, ptr nonnull %8) #4
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 1 dereferenceable(5) %8, ptr noundef nonnull align 1 dereferenceable(5) @__const.dhzc_post_parse.key, i64 5, i1 false)
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #4
  br label %14

14:                                               ; preds = %12, %.critedge
  %.086176 = phi i32 [ 0, %12 ], [ %.894, %.critedge ]
  %.095175 = phi i8 [ 0, %12 ], [ %.10105, %.critedge ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #4
  store i32 2048, ptr %10, align 4, !tbaa !5
  %15 = zext i32 %.086176 to i64
  %16 = getelementptr inbounds i8, ptr %0, i64 %15
  %17 = call i32 @ets_strncmp(ptr noundef %16, ptr noundef nonnull %3, i32 noundef 5) #4
  %18 = icmp eq i32 %17, 0
  br i1 %18, label %19, label %36

19:                                               ; preds = %14
  %20 = add i32 %.086176, 5
  %.not135 = icmp ugt i32 %20, %1
  br i1 %.not135, label %.critedge, label %21

21:                                               ; preds = %19
  %22 = zext i32 %20 to i64
  %23 = getelementptr inbounds i8, ptr %0, i64 %22
  %24 = sub i32 %1, %20
  %25 = call i32 @read_value(ptr noundef %23, i32 noundef %24, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef null)
  %.not136 = icmp eq i32 %25, 0
  %26 = load i32, ptr %10, align 4
  %27 = add i32 %26, %20
  br i1 %.not136, label %.critedge.thread169, label %28

28:                                               ; preds = %21
  %29 = call i32 @ets_strcmp(ptr noundef nonnull %9, ptr noundef nonnull @.str.1) #4
  %30 = icmp eq i32 %29, 0
  br i1 %30, label %31, label %32

31:                                               ; preds = %28
  call void @dhsettings_set_wifi_mode(i32 noundef 0) #4
  br label %.critedge

32:                                               ; preds = %28
  %33 = call i32 @ets_strcmp(ptr noundef nonnull %9, ptr noundef nonnull @.str.2) #4
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %.critedge.thread169

35:                                               ; preds = %32
  call void @dhsettings_set_wifi_mode(i32 noundef 1) #4
  br label %.critedge

36:                                               ; preds = %14
  %37 = call i32 @ets_strncmp(ptr noundef %16, ptr noundef nonnull %4, i32 noundef 5) #4
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %52

39:                                               ; preds = %36
  %40 = add i32 %.086176, 5
  %.not134 = icmp ugt i32 %40, %1
  br i1 %.not134, label %.critedge, label %41

41:                                               ; preds = %39
  %42 = zext i32 %40 to i64
  %43 = getelementptr inbounds i8, ptr %0, i64 %42
  %44 = sub i32 %1, %40
  %45 = call i32 @read_value(ptr noundef %43, i32 noundef %44, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef null)
  %46 = icmp eq i32 %45, 0
  br i1 %46, label %.critedge.thread169, label %47

47:                                               ; preds = %41
  %48 = load i32, ptr %10, align 4, !tbaa !5
  %49 = icmp ugt i32 %48, 31
  br i1 %49, label %.critedge.thread169, label %50

50:                                               ; preds = %47
  %51 = add i32 %48, %40
  call void @dhsettings_set_wifi_ssid(ptr noundef nonnull %9) #4
  br label %.critedge

52:                                               ; preds = %36
  %53 = call i32 @ets_strncmp(ptr noundef %16, ptr noundef nonnull %5, i32 noundef 5) #4
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %69

55:                                               ; preds = %52
  %56 = add i32 %.086176, 5
  %.not132 = icmp ugt i32 %56, %1
  br i1 %.not132, label %.critedge, label %57

57:                                               ; preds = %55
  %58 = zext i32 %56 to i64
  %59 = getelementptr inbounds i8, ptr %0, i64 %58
  %60 = sub i32 %1, %56
  %61 = call i32 @read_value(ptr noundef %59, i32 noundef %60, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef null)
  %62 = icmp eq i32 %61, 0
  br i1 %62, label %.critedge.thread169, label %63

63:                                               ; preds = %57
  %64 = load i32, ptr %10, align 4, !tbaa !5
  %65 = add i32 %64, %56
  %.not133 = icmp eq i32 %64, 0
  br i1 %.not133, label %.critedge, label %66

66:                                               ; preds = %63
  %67 = icmp ugt i32 %64, 63
  br i1 %67, label %.critedge.thread169, label %68

68:                                               ; preds = %66
  call void @dhsettings_set_wifi_password(ptr noundef nonnull %9) #4
  br label %.critedge

69:                                               ; preds = %52
  %70 = call i32 @ets_strncmp(ptr noundef %16, ptr noundef nonnull %6, i32 noundef 4) #4
  %71 = icmp eq i32 %70, 0
  br i1 %71, label %72, label %85

72:                                               ; preds = %69
  %73 = add i32 %.086176, 4
  %.not131 = icmp ugt i32 %73, %1
  br i1 %.not131, label %.critedge, label %74

74:                                               ; preds = %72
  %75 = zext i32 %73 to i64
  %76 = getelementptr inbounds i8, ptr %0, i64 %75
  %77 = sub i32 %1, %73
  %78 = call i32 @read_value(ptr noundef %76, i32 noundef %77, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull @dhsettings_server_filter)
  %79 = icmp eq i32 %78, 0
  br i1 %79, label %.critedge.thread169, label %80

80:                                               ; preds = %74
  %81 = load i32, ptr %10, align 4, !tbaa !5
  %82 = icmp ugt i32 %81, 383
  br i1 %82, label %.critedge.thread169, label %83

83:                                               ; preds = %80
  %84 = add i32 %81, %73
  call void @dhsettings_set_devicehive_server(ptr noundef nonnull %9) #4
  br label %.critedge

85:                                               ; preds = %69
  %86 = call i32 @ets_strncmp(ptr noundef %16, ptr noundef nonnull %7, i32 noundef 3) #4
  %87 = icmp eq i32 %86, 0
  br i1 %87, label %88, label %101

88:                                               ; preds = %85
  %89 = add i32 %.086176, 3
  %.not130 = icmp ugt i32 %89, %1
  br i1 %.not130, label %.critedge, label %90

90:                                               ; preds = %88
  %91 = zext i32 %89 to i64
  %92 = getelementptr inbounds i8, ptr %0, i64 %91
  %93 = sub i32 %1, %89
  %94 = call i32 @read_value(ptr noundef %92, i32 noundef %93, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull @dhsettings_deviceid_filter)
  %95 = icmp eq i32 %94, 0
  br i1 %95, label %.critedge.thread169, label %96

96:                                               ; preds = %90
  %97 = load i32, ptr %10, align 4, !tbaa !5
  %98 = icmp ugt i32 %97, 127
  br i1 %98, label %.critedge.thread169, label %99

99:                                               ; preds = %96
  %100 = add i32 %97, %89
  call void @dhsettings_set_devicehive_deviceid(ptr noundef nonnull %9) #4
  br label %.critedge

101:                                              ; preds = %85
  %102 = call i32 @ets_strncmp(ptr noundef %16, ptr noundef nonnull %8, i32 noundef 4) #4
  %103 = icmp eq i32 %102, 0
  br i1 %103, label %104, label %118

104:                                              ; preds = %101
  %105 = add i32 %.086176, 4
  %.not128 = icmp ugt i32 %105, %1
  br i1 %.not128, label %.critedge, label %106

106:                                              ; preds = %104
  %107 = zext i32 %105 to i64
  %108 = getelementptr inbounds i8, ptr %0, i64 %107
  %109 = sub i32 %1, %105
  %110 = call i32 @read_value(ptr noundef %108, i32 noundef %109, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull @dhsettings_key_filter)
  %111 = icmp eq i32 %110, 0
  br i1 %111, label %.critedge.thread169, label %112

112:                                              ; preds = %106
  %113 = load i32, ptr %10, align 4, !tbaa !5
  %114 = add i32 %113, %105
  %.not129 = icmp eq i32 %113, 0
  br i1 %.not129, label %.critedge, label %115

115:                                              ; preds = %112
  %116 = icmp ugt i32 %113, 1024
  br i1 %116, label %.critedge.thread169, label %117

117:                                              ; preds = %115
  call void @dhsettings_set_devicehive_key(ptr noundef nonnull %9) #4
  br label %.critedge

118:                                              ; preds = %101
  %119 = add nuw i32 %.086176, 1
  br label %.critedge

.critedge.thread169:                              ; preds = %32, %21, %66, %57, %115, %106, %41, %47, %74, %80, %90, %96
  %.8.ph = phi ptr [ @.str.13, %115 ], [ @.str.12, %106 ], [ @.str.7, %66 ], [ @.str.6, %57 ], [ @.str.3, %32 ], [ @.str.3, %21 ], [ @.str.5, %47 ], [ @.str.4, %41 ], [ @.str.9, %80 ], [ @.str.8, %74 ], [ @.str.11, %96 ], [ @.str.10, %90 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  br label %122

.critedge:                                        ; preds = %112, %117, %63, %68, %31, %35, %19, %55, %88, %104, %118, %72, %39, %50, %83, %99
  %.10105 = phi i8 [ %.095175, %19 ], [ 1, %50 ], [ %.095175, %39 ], [ %.095175, %55 ], [ 1, %83 ], [ %.095175, %72 ], [ 1, %99 ], [ %.095175, %88 ], [ %.095175, %104 ], [ %.095175, %118 ], [ 1, %35 ], [ 1, %31 ], [ %.095175, %63 ], [ 1, %68 ], [ %.095175, %112 ], [ 1, %117 ]
  %.894 = phi i32 [ %20, %19 ], [ %51, %50 ], [ %40, %39 ], [ %56, %55 ], [ %84, %83 ], [ %73, %72 ], [ %100, %99 ], [ %89, %88 ], [ %105, %104 ], [ %119, %118 ], [ %27, %35 ], [ %27, %31 ], [ %65, %63 ], [ %65, %68 ], [ %114, %112 ], [ %114, %117 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #4
  %120 = icmp ult i32 %.894, %1
  br i1 %120, label %14, label %121, !llvm.loop !9

121:                                              ; preds = %.critedge
  %.not = icmp eq i8 %.10105, 0
  %.str.14. = select i1 %.not, ptr @.str.14, ptr null
  br label %122

122:                                              ; preds = %.critedge.thread169, %121
  %.9 = phi ptr [ %.str.14., %121 ], [ %.8.ph, %.critedge.thread169 ]
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #4
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 5, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 6, ptr nonnull %3) #4
  br label %123

123:                                              ; preds = %2, %122
  %.10 = phi ptr [ %.9, %122 ], [ @.str, %2 ]
  ret ptr %.10
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

declare i32 @ets_strncmp(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden i32 @read_value(ptr noundef, i32 noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

declare i32 @ets_strcmp(ptr noundef, ptr noundef) local_unnamed_addr #3

declare void @dhsettings_set_wifi_mode(i32 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

declare void @dhsettings_set_wifi_ssid(ptr noundef) local_unnamed_addr #3

declare void @dhsettings_set_wifi_password(ptr noundef) local_unnamed_addr #3

declare i32 @dhsettings_server_filter(i8 noundef signext) #3

declare void @dhsettings_set_devicehive_server(ptr noundef) local_unnamed_addr #3

declare i32 @dhsettings_deviceid_filter(i8 noundef signext) #3

declare void @dhsettings_set_devicehive_deviceid(ptr noundef) local_unnamed_addr #3

declare i32 @dhsettings_key_filter(i8 noundef signext) #3

declare void @dhsettings_set_devicehive_key(ptr noundef) local_unnamed_addr #3

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass