; LLVM IR from krig/LISP :: komplott (lisp_eval)

; 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"

%struct.object_t = type { ptr, ptr, i32 }

@TQUOTE = external dso_local global ptr, align 8
@TLAMBDA = external dso_local global ptr, align 8
@TCOND = external dso_local global ptr, align 8
@TDEFINE = external dso_local global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @match_number(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_cons(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local void @gc_protect(ptr noundef, ...) #1

; Function Attrs: nounwind uwtable
declare dso_local void @gc_pop() #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @env_lookup(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @env_set(ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @list_reverse(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @lisp_eval(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  br label %19

19:                                               ; preds = %300, %133, %2
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = icmp eq ptr %20, null
  br i1 %21, label %22, label %24

22:                                               ; preds = %19
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %23, ptr %3, align 8
  br label %305

24:                                               ; preds = %19
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.object_t, ptr %25, i32 0, i32 2
  %27 = load i32, ptr %26, align 8, !tbaa !9
  %28 = icmp eq i32 %27, 1
  br i1 %28, label %29, label %54

29:                                               ; preds = %24
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %41

32:                                               ; preds = %29
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.object_t, ptr %33, i32 0, i32 2
  %35 = load i32, ptr %34, align 8, !tbaa !9
  %36 = icmp eq i32 %35, 1
  br i1 %36, label %37, label %41

37:                                               ; preds = %32
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.object_t, ptr %38, i32 0, i32 0
  %40 = load ptr, ptr %39, align 8, !tbaa !12
  br label %42

41:                                               ; preds = %32, %29
  br label %42

42:                                               ; preds = %41, %37
  %43 = phi ptr [ %40, %37 ], [ @.str.2, %41 ]
  %44 = call i32 @match_number(ptr noundef %43)
  %45 = icmp ne i32 %44, 0
  br i1 %45, label %46, label %48

46:                                               ; preds = %42
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  br label %52

48:                                               ; preds = %42
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = call ptr @env_lookup(ptr noundef %49, ptr noundef %50)
  br label %52

52:                                               ; preds = %48, %46
  %53 = phi ptr [ %47, %46 ], [ %51, %48 ]
  store ptr %53, ptr %3, align 8
  br label %305

54:                                               ; preds = %24
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.object_t, ptr %55, i32 0, i32 2
  %57 = load i32, ptr %56, align 8, !tbaa !9
  %58 = icmp ne i32 %57, 0
  br i1 %58, label %59, label %61

59:                                               ; preds = %54
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %60, ptr %3, align 8
  br label %305

61:                                               ; preds = %54
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.object_t, ptr %62, i32 0, i32 0
  %64 = load ptr, ptr %63, align 8, !tbaa !12
  store ptr %64, ptr %6, align 8, !tbaa !5
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = icmp ne ptr %65, null
  br i1 %66, label %67, label %76

67:                                               ; preds = %61
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.object_t, ptr %68, i32 0, i32 2
  %70 = load i32, ptr %69, align 8, !tbaa !9
  %71 = icmp eq i32 %70, 1
  br i1 %71, label %72, label %76

72:                                               ; preds = %67
  %73 = load ptr, ptr %6, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.object_t, ptr %73, i32 0, i32 0
  %75 = load ptr, ptr %74, align 8, !tbaa !12
  br label %77

76:                                               ; preds = %67, %61
  br label %77

77:                                               ; preds = %76, %72
  %78 = phi ptr [ %75, %72 ], [ @.str.2, %76 ]
  %79 = load ptr, ptr @TQUOTE, align 8, !tbaa !5
  %80 = icmp eq ptr %78, %79
  br i1 %80, label %81, label %87

81:                                               ; preds = %77
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.object_t, ptr %82, i32 0, i32 1
  %84 = load ptr, ptr %83, align 8, !tbaa !13
  %85 = getelementptr inbounds %struct.object_t, ptr %84, i32 0, i32 0
  %86 = load ptr, ptr %85, align 8, !tbaa !12
  store ptr %86, ptr %3, align 8
  br label %305

87:                                               ; preds = %77
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %99

90:                                               ; preds = %87
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.object_t, ptr %91, i32 0, i32 2
  %93 = load i32, ptr %92, align 8, !tbaa !9
  %94 = icmp eq i32 %93, 1
  br i1 %94, label %95, label %99

95:                                               ; preds = %90
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.object_t, ptr %96, i32 0, i32 0
  %98 = load ptr, ptr %97, align 8, !tbaa !12
  br label %100

99:                                               ; preds = %90, %87
  br label %100

100:                                              ; preds = %99, %95
  %101 = phi ptr [ %98, %95 ], [ @.str.2, %99 ]
  %102 = load ptr, ptr @TCOND, align 8, !tbaa !5
  %103 = icmp eq ptr %101, %102
  br i1 %103, label %104, label %135

104:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #2
  store ptr null, ptr %8, align 8, !tbaa !5
  call void (ptr, ...) @gc_protect(ptr noundef %4, ptr noundef %5, ptr noundef %7, ptr noundef %8, ptr noundef null)
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.object_t, ptr %105, i32 0, i32 1
  %107 = load ptr, ptr %106, align 8, !tbaa !13
  store ptr %107, ptr %7, align 8, !tbaa !5
  br label %108

108:                                              ; preds = %128, %104
  %109 = load ptr, ptr %7, align 8, !tbaa !5
  %110 = icmp ne ptr %109, null
  br i1 %110, label %111, label %132

111:                                              ; preds = %108
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.object_t, ptr %112, i32 0, i32 0
  %114 = load ptr, ptr %113, align 8, !tbaa !12
  store ptr %114, ptr %8, align 8, !tbaa !5
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.object_t, ptr %115, i32 0, i32 0
  %117 = load ptr, ptr %116, align 8, !tbaa !12
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = call ptr @lisp_eval(ptr noundef %117, ptr noundef %118)
  %120 = icmp ne ptr %119, null
  br i1 %120, label %121, label %127

121:                                              ; preds = %111
  %122 = load ptr, ptr %8, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.object_t, ptr %122, i32 0, i32 1
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  %125 = getelementptr inbounds %struct.object_t, ptr %124, i32 0, i32 0
  %126 = load ptr, ptr %125, align 8, !tbaa !12
  store ptr %126, ptr %4, align 8, !tbaa !5
  call void @gc_pop()
  store i32 2, ptr %9, align 4
  br label %133

127:                                              ; preds = %111
  br label %128

128:                                              ; preds = %127
  %129 = load ptr, ptr %7, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.object_t, ptr %129, i32 0, i32 1
  %131 = load ptr, ptr %130, align 8, !tbaa !13
  store ptr %131, ptr %7, align 8, !tbaa !5
  br label %108, !llvm.loop !14

132:                                              ; preds = %108
  store ptr null, ptr %3, align 8
  store i32 1, ptr %9, align 4
  br label %133

133:                                              ; preds = %132, %121
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #2
  %134 = load i32, ptr %9, align 4
  switch i32 %134, label %307 [
    i32 2, label %19
    i32 1, label %305
  ]

135:                                              ; preds = %100
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = icmp ne ptr %136, null
  br i1 %137, label %138, label %147

138:                                              ; preds = %135
  %139 = load ptr, ptr %6, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.object_t, ptr %139, i32 0, i32 2
  %141 = load i32, ptr %140, align 8, !tbaa !9
  %142 = icmp eq i32 %141, 1
  br i1 %142, label %143, label %147

143:                                              ; preds = %138
  %144 = load ptr, ptr %6, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.object_t, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !12
  br label %148

147:                                              ; preds = %138, %135
  br label %148

148:                                              ; preds = %147, %143
  %149 = phi ptr [ %146, %143 ], [ @.str.2, %147 ]
  %150 = load ptr, ptr @TDEFINE, align 8, !tbaa !5
  %151 = icmp eq ptr %149, %150
  br i1 %151, label %152, label %172

152:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #2
  store ptr null, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  store ptr null, ptr %11, align 8, !tbaa !5
  call void (ptr, ...) @gc_protect(ptr noundef %5, ptr noundef %10, ptr noundef %11, ptr noundef null)
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.object_t, ptr %153, i32 0, i32 1
  %155 = load ptr, ptr %154, align 8, !tbaa !13
  %156 = getelementptr inbounds %struct.object_t, ptr %155, i32 0, i32 0
  %157 = load ptr, ptr %156, align 8, !tbaa !12
  store ptr %157, ptr %10, align 8, !tbaa !5
  %158 = load ptr, ptr %4, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.object_t, ptr %158, i32 0, i32 1
  %160 = load ptr, ptr %159, align 8, !tbaa !13
  %161 = getelementptr inbounds %struct.object_t, ptr %160, i32 0, i32 1
  %162 = load ptr, ptr %161, align 8, !tbaa !13
  %163 = getelementptr inbounds %struct.object_t, ptr %162, i32 0, i32 0
  %164 = load ptr, ptr %163, align 8, !tbaa !12
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = call ptr @lisp_eval(ptr noundef %164, ptr noundef %165)
  store ptr %166, ptr %11, align 8, !tbaa !5
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = load ptr, ptr %10, align 8, !tbaa !5
  %169 = load ptr, ptr %11, align 8, !tbaa !5
  %170 = call ptr @env_set(ptr noundef %167, ptr noundef %168, ptr noundef %169)
  call void @gc_pop()
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %171, ptr %3, align 8
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #2
  br label %305

172:                                              ; preds = %148
  %173 = load ptr, ptr %6, align 8, !tbaa !5
  %174 = icmp ne ptr %173, null
  br i1 %174, label %175, label %184

175:                                              ; preds = %172
  %176 = load ptr, ptr %6, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.object_t, ptr %176, i32 0, i32 2
  %178 = load i32, ptr %177, align 8, !tbaa !9
  %179 = icmp eq i32 %178, 1
  br i1 %179, label %180, label %184

180:                                              ; preds = %175
  %181 = load ptr, ptr %6, align 8, !tbaa !5
  %182 = getelementptr inbounds %struct.object_t, ptr %181, i32 0, i32 0
  %183 = load ptr, ptr %182, align 8, !tbaa !12
  br label %185

184:                                              ; preds = %175, %172
  br label %185

185:                                              ; preds = %184, %180
  %186 = phi ptr [ %183, %180 ], [ @.str.2, %184 ]
  %187 = load ptr, ptr @TLAMBDA, align 8, !tbaa !5
  %188 = icmp eq ptr %186, %187
  br i1 %188, label %189, label %197

189:                                              ; preds = %185
  %190 = load ptr, ptr %4, align 8, !tbaa !5
  %191 = getelementptr inbounds %struct.object_t, ptr %190, i32 0, i32 1
  %192 = load ptr, ptr %191, align 8, !tbaa !13
  %193 = getelementptr inbounds %struct.object_t, ptr %192, i32 0, i32 2
  store i32 3, ptr %193, align 8, !tbaa !9
  %194 = load ptr, ptr %4, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.object_t, ptr %194, i32 0, i32 1
  %196 = load ptr, ptr %195, align 8, !tbaa !13
  store ptr %196, ptr %3, align 8
  br label %305

197:                                              ; preds = %185
  br label %198

198:                                              ; preds = %197
  br label %199

199:                                              ; preds = %198
  br label %200

200:                                              ; preds = %199
  store ptr null, ptr %12, align 8, !tbaa !5
  store ptr null, ptr %13, align 8, !tbaa !5
  store ptr null, ptr %14, align 8, !tbaa !5
  store ptr null, ptr %15, align 8, !tbaa !5
  call void (ptr, ...) @gc_protect(ptr noundef %4, ptr noundef %5, ptr noundef %12, ptr noundef %13, ptr noundef %14, ptr noundef %15, ptr noundef null)
  %201 = load ptr, ptr %6, align 8, !tbaa !5
  %202 = load ptr, ptr %5, align 8, !tbaa !5
  %203 = call ptr @lisp_eval(ptr noundef %201, ptr noundef %202)
  store ptr %203, ptr %12, align 8, !tbaa !5
  %204 = load ptr, ptr %12, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.object_t, ptr %204, i32 0, i32 2
  %206 = load i32, ptr %205, align 8, !tbaa !9
  %207 = icmp eq i32 %206, 2
  br i1 %207, label %208, label %236

208:                                              ; preds = %200
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.object_t, ptr %209, i32 0, i32 1
  %211 = load ptr, ptr %210, align 8, !tbaa !13
  store ptr %211, ptr %14, align 8, !tbaa !5
  br label %212

212:                                              ; preds = %224, %208
  %213 = load ptr, ptr %14, align 8, !tbaa !5
  %214 = icmp ne ptr %213, null
  br i1 %214, label %215, label %228

215:                                              ; preds = %212
  %216 = load ptr, ptr %14, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.object_t, ptr %216, i32 0, i32 0
  %218 = load ptr, ptr %217, align 8, !tbaa !12
  %219 = load ptr, ptr %5, align 8, !tbaa !5
  %220 = call ptr @lisp_eval(ptr noundef %218, ptr noundef %219)
  store ptr %220, ptr %15, align 8, !tbaa !5
  %221 = load ptr, ptr %15, align 8, !tbaa !5
  %222 = load ptr, ptr %13, align 8, !tbaa !5
  %223 = call ptr @new_cons(ptr noundef %221, ptr noundef %222)
  store ptr %223, ptr %13, align 8, !tbaa !5
  br label %224

224:                                              ; preds = %215
  %225 = load ptr, ptr %14, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.object_t, ptr %225, i32 0, i32 1
  %227 = load ptr, ptr %226, align 8, !tbaa !13
  store ptr %227, ptr %14, align 8, !tbaa !5
  br label %212, !llvm.loop !16

228:                                              ; preds = %212
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #2
  %229 = load ptr, ptr %12, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.object_t, ptr %229, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !12
  %232 = load ptr, ptr %13, align 8, !tbaa !5
  %233 = call ptr @list_reverse(ptr noundef %232)
  %234 = call ptr %231(ptr noundef %233)
  store ptr %234, ptr %16, align 8, !tbaa !5
  call void @gc_pop()
  %235 = load ptr, ptr %16, align 8, !tbaa !5
  store ptr %235, ptr %3, align 8
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #2
  br label %305

236:                                              ; preds = %200
  %237 = load ptr, ptr %12, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.object_t, ptr %237, i32 0, i32 2
  %239 = load i32, ptr %238, align 8, !tbaa !9
  %240 = icmp eq i32 %239, 3
  br i1 %240, label %241, label %303

241:                                              ; preds = %236
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  %242 = load ptr, ptr %5, align 8, !tbaa !5
  %243 = call ptr @new_cons(ptr noundef null, ptr noundef %242)
  store ptr %243, ptr %17, align 8, !tbaa !5
  %244 = load ptr, ptr %12, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.object_t, ptr %244, i32 0, i32 0
  %246 = load ptr, ptr %245, align 8, !tbaa !12
  store ptr %246, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  store ptr null, ptr %18, align 8, !tbaa !5
  call void (ptr, ...) @gc_protect(ptr noundef %17, ptr noundef %18, ptr noundef null)
  %247 = load ptr, ptr %4, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.object_t, ptr %247, i32 0, i32 1
  %249 = load ptr, ptr %248, align 8, !tbaa !13
  store ptr %249, ptr %14, align 8, !tbaa !5
  br label %250

250:                                              ; preds = %265, %241
  %251 = load ptr, ptr %14, align 8, !tbaa !5
  %252 = icmp ne ptr %251, null
  br i1 %252, label %253, label %272

253:                                              ; preds = %250
  %254 = load ptr, ptr %14, align 8, !tbaa !5
  %255 = getelementptr inbounds %struct.object_t, ptr %254, i32 0, i32 0
  %256 = load ptr, ptr %255, align 8, !tbaa !12
  %257 = load ptr, ptr %5, align 8, !tbaa !5
  %258 = call ptr @lisp_eval(ptr noundef %256, ptr noundef %257)
  store ptr %258, ptr %15, align 8, !tbaa !5
  %259 = load ptr, ptr %17, align 8, !tbaa !5
  %260 = load ptr, ptr %13, align 8, !tbaa !5
  %261 = getelementptr inbounds %struct.object_t, ptr %260, i32 0, i32 0
  %262 = load ptr, ptr %261, align 8, !tbaa !12
  %263 = load ptr, ptr %15, align 8, !tbaa !5
  %264 = call ptr @env_set(ptr noundef %259, ptr noundef %262, ptr noundef %263)
  br label %265

265:                                              ; preds = %253
  %266 = load ptr, ptr %14, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.object_t, ptr %266, i32 0, i32 1
  %268 = load ptr, ptr %267, align 8, !tbaa !13
  store ptr %268, ptr %14, align 8, !tbaa !5
  %269 = load ptr, ptr %13, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.object_t, ptr %269, i32 0, i32 1
  %271 = load ptr, ptr %270, align 8, !tbaa !13
  store ptr %271, ptr %13, align 8, !tbaa !5
  br label %250, !llvm.loop !17

272:                                              ; preds = %250
  %273 = load ptr, ptr %12, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.object_t, ptr %273, i32 0, i32 1
  %275 = load ptr, ptr %274, align 8, !tbaa !13
  store ptr %275, ptr %18, align 8, !tbaa !5
  br label %276

276:                                              ; preds = %295, %272
  %277 = load ptr, ptr %18, align 8, !tbaa !5
  %278 = icmp ne ptr %277, null
  br i1 %278, label %279, label %299

279:                                              ; preds = %276
  %280 = load ptr, ptr %18, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.object_t, ptr %280, i32 0, i32 1
  %282 = load ptr, ptr %281, align 8, !tbaa !13
  %283 = icmp eq ptr %282, null
  br i1 %283, label %284, label %289

284:                                              ; preds = %279
  %285 = load ptr, ptr %18, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.object_t, ptr %285, i32 0, i32 0
  %287 = load ptr, ptr %286, align 8, !tbaa !12
  store ptr %287, ptr %4, align 8, !tbaa !5
  %288 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %288, ptr %5, align 8, !tbaa !5
  call void @gc_pop()
  call void @gc_pop()
  store i32 2, ptr %9, align 4
  br label %300

289:                                              ; preds = %279
  %290 = load ptr, ptr %18, align 8, !tbaa !5
  %291 = getelementptr inbounds %struct.object_t, ptr %290, i32 0, i32 0
  %292 = load ptr, ptr %291, align 8, !tbaa !12
  %293 = load ptr, ptr %17, align 8, !tbaa !5
  %294 = call ptr @lisp_eval(ptr noundef %292, ptr noundef %293)
  br label %295

295:                                              ; preds = %289
  %296 = load ptr, ptr %18, align 8, !tbaa !5
  %297 = getelementptr inbounds %struct.object_t, ptr %296, i32 0, i32 1
  %298 = load ptr, ptr %297, align 8, !tbaa !13
  store ptr %298, ptr %18, align 8, !tbaa !5
  br label %276, !llvm.loop !18

299:                                              ; preds = %276
  call void @gc_pop()
  call void @gc_pop()
  store i32 0, ptr %9, align 4
  br label %300

300:                                              ; preds = %299, %284
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  %301 = load i32, ptr %9, align 4
  switch i32 %301, label %307 [
    i32 0, label %302
    i32 2, label %19
  ]

302:                                              ; preds = %300
  br label %303

303:                                              ; preds = %302, %236
  br label %304

304:                                              ; preds = %303
  store ptr null, ptr %3, align 8
  br label %305

305:                                              ; preds = %304, %228, %189, %152, %133, %81, %59, %52, %22
  %306 = load ptr, ptr %3, align 8
  ret ptr %306

307:                                              ; preds = %300, %133
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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, !11, i64 16}
!10 = !{!"object_t", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!10, !6, i64 8}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}


; 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"

@TQUOTE = external dso_local local_unnamed_addr global ptr, align 8
@TLAMBDA = external dso_local local_unnamed_addr global ptr, align 8
@TCOND = external dso_local local_unnamed_addr global ptr, align 8
@TDEFINE = external dso_local local_unnamed_addr global ptr, align 8
@.str.2 = external hidden unnamed_addr constant [1 x i8], align 1

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

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @match_number(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @new_cons(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @gc_protect(ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local void @gc_pop() local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @env_lookup(ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @env_set(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
declare dso_local ptr @list_reverse(ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @lisp_eval(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %15 = icmp eq ptr %0, null
  br i1 %15, label %.loopexit, label %.lr.ph68

thread-pre-split:                                 ; preds = %146, %.thread43
  %.pr = load ptr, ptr %3, align 8, !tbaa !5
  %16 = icmp eq ptr %.pr, null
  br i1 %16, label %.loopexit, label %.lr.ph68

.lr.ph68:                                         ; preds = %2, %thread-pre-split
  %17 = phi ptr [ %.pr, %thread-pre-split ], [ %0, %2 ]
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = load i32, ptr %18, align 8, !tbaa !9
  switch i32 %19, label %.loopexit [
    i32 1, label %20
    i32 0, label %27
  ]

20:                                               ; preds = %.lr.ph68
  %21 = load ptr, ptr %17, align 8, !tbaa !12
  %22 = call i32 @match_number(ptr noundef %21)
  %.not39 = icmp eq i32 %22, 0
  %23 = load ptr, ptr %3, align 8, !tbaa !5
  br i1 %.not39, label %24, label %.loopexit

24:                                               ; preds = %20
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = call ptr @env_lookup(ptr noundef %23, ptr noundef %25)
  br label %.loopexit

27:                                               ; preds = %.lr.ph68
  %28 = load ptr, ptr %17, align 8, !tbaa !12
  %.not29 = icmp eq ptr %28, null
  br i1 %.not29, label %.thread, label %29

29:                                               ; preds = %27
  %30 = getelementptr inbounds i8, ptr %28, i64 16
  %31 = load i32, ptr %30, align 8, !tbaa !9
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %.thread93

33:                                               ; preds = %29
  %34 = load ptr, ptr %28, align 8, !tbaa !12
  %35 = load ptr, ptr @TQUOTE, align 8, !tbaa !5
  %36 = icmp eq ptr %34, %35
  br i1 %36, label %41, label %45

.thread93:                                        ; preds = %29
  %37 = load ptr, ptr @TQUOTE, align 8, !tbaa !5
  %38 = icmp eq ptr %37, @.str.2
  br i1 %38, label %41, label %.thread42

.thread:                                          ; preds = %27
  %39 = load ptr, ptr @TQUOTE, align 8, !tbaa !5
  %40 = icmp eq ptr %39, @.str.2
  br i1 %40, label %41, label %.thread42.thread

41:                                               ; preds = %.thread93, %.thread, %33
  %42 = getelementptr inbounds i8, ptr %17, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !13
  %44 = load ptr, ptr %43, align 8, !tbaa !12
  br label %.loopexit

45:                                               ; preds = %33
  %46 = load ptr, ptr %28, align 8, !tbaa !12
  br label %.thread42

.thread42:                                        ; preds = %.thread93, %45
  %47 = phi ptr [ %46, %45 ], [ @.str.2, %.thread93 ]
  %48 = load ptr, ptr @TCOND, align 8, !tbaa !5
  %49 = icmp eq ptr %47, %48
  br i1 %49, label %.peel.begin, label %66

.thread42.thread:                                 ; preds = %.thread
  %50 = load ptr, ptr @TCOND, align 8, !tbaa !5
  %51 = icmp eq ptr %50, @.str.2
  br i1 %51, label %.peel.begin, label %.thread47

.peel.begin:                                      ; preds = %.thread42.thread, %.thread42
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #2
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #2
  store ptr null, ptr %6, align 8, !tbaa !5
  call void (ptr, ...) @gc_protect(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5, ptr noundef nonnull %6, ptr noundef null)
  %.pn38.peel = load ptr, ptr %3, align 8, !tbaa !5
  %storemerge35.in.peel = getelementptr inbounds i8, ptr %.pn38.peel, i64 8
  %storemerge35.peel = load ptr, ptr %storemerge35.in.peel, align 8, !tbaa !13
  store ptr %storemerge35.peel, ptr %5, align 8, !tbaa !5
  %.not36.peel = icmp eq ptr %storemerge35.peel, null
  br i1 %.not36.peel, label %.loopexit90, label %52

52:                                               ; preds = %.peel.begin
  %53 = load ptr, ptr %storemerge35.peel, align 8, !tbaa !12
  store ptr %53, ptr %6, align 8, !tbaa !5
  %54 = load ptr, ptr %53, align 8, !tbaa !12
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = call ptr @lisp_eval(ptr noundef %54, ptr noundef %55)
  %.not37.peel = icmp eq ptr %56, null
  br i1 %.not37.peel, label %.peel.next, label %.thread43

.peel.next:                                       ; preds = %52, %57
  %.pn38 = load ptr, ptr %5, align 8, !tbaa !5
  %storemerge35.in = getelementptr inbounds i8, ptr %.pn38, i64 8
  %storemerge35 = load ptr, ptr %storemerge35.in, align 8, !tbaa !13
  store ptr %storemerge35, ptr %5, align 8, !tbaa !5
  %.not36 = icmp eq ptr %storemerge35, null
  br i1 %.not36, label %.loopexit90, label %57

57:                                               ; preds = %.peel.next
  %58 = load ptr, ptr %storemerge35, align 8, !tbaa !12
  store ptr %58, ptr %6, align 8, !tbaa !5
  %59 = load ptr, ptr %58, align 8, !tbaa !12
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = call ptr @lisp_eval(ptr noundef %59, ptr noundef %60)
  %.not37 = icmp eq ptr %61, null
  br i1 %.not37, label %.peel.next, label %.thread43, !llvm.loop !14

.thread43:                                        ; preds = %57, %52
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = load ptr, ptr %64, align 8, !tbaa !12
  store ptr %65, ptr %3, align 8, !tbaa !5
  call void @gc_pop()
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #2
  br label %thread-pre-split

.loopexit90:                                      ; preds = %.peel.begin, %.peel.next
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #2
  br label %.loopexit

66:                                               ; preds = %.thread42
  br i1 %.not29, label %.thread47, label %67

67:                                               ; preds = %66
  %68 = getelementptr inbounds i8, ptr %28, i64 16
  %69 = load i32, ptr %68, align 8, !tbaa !9
  %70 = icmp eq i32 %69, 1
  br i1 %70, label %71, label %.thread96

71:                                               ; preds = %67
  %72 = load ptr, ptr %28, align 8, !tbaa !12
  %73 = load ptr, ptr @TDEFINE, align 8, !tbaa !5
  %74 = icmp eq ptr %72, %73
  br i1 %74, label %79, label %93

.thread96:                                        ; preds = %67
  %75 = load ptr, ptr @TDEFINE, align 8, !tbaa !5
  %76 = icmp eq ptr %75, @.str.2
  br i1 %76, label %79, label %.thread48

.thread47:                                        ; preds = %.thread42.thread, %66
  %77 = load ptr, ptr @TDEFINE, align 8, !tbaa !5
  %78 = icmp eq ptr %77, @.str.2
  br i1 %78, label %79, label %.thread48

79:                                               ; preds = %.thread96, %.thread47, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #2
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #2
  store ptr null, ptr %8, align 8, !tbaa !5
  call void (ptr, ...) @gc_protect(ptr noundef nonnull %4, ptr noundef nonnull %7, ptr noundef nonnull %8, ptr noundef null)
  %80 = load ptr, ptr %3, align 8, !tbaa !5
  %81 = getelementptr inbounds i8, ptr %80, i64 8
  %82 = load ptr, ptr %81, align 8, !tbaa !13
  %83 = load ptr, ptr %82, align 8, !tbaa !12
  store ptr %83, ptr %7, align 8, !tbaa !5
  %84 = getelementptr inbounds i8, ptr %82, i64 8
  %85 = load ptr, ptr %84, align 8, !tbaa !13
  %86 = load ptr, ptr %85, align 8, !tbaa !12
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = call ptr @lisp_eval(ptr noundef %86, ptr noundef %87)
  store ptr %88, ptr %8, align 8, !tbaa !5
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = load ptr, ptr %7, align 8, !tbaa !5
  %91 = call ptr @env_set(ptr noundef %89, ptr noundef %90, ptr noundef %88)
  call void @gc_pop()
  %92 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #2
  br label %.loopexit

93:                                               ; preds = %71
  %94 = load ptr, ptr %28, align 8, !tbaa !12
  br label %.thread48

.thread48:                                        ; preds = %.thread96, %.thread47, %93
  %95 = phi ptr [ %94, %93 ], [ @.str.2, %.thread47 ], [ @.str.2, %.thread96 ]
  %96 = load ptr, ptr @TLAMBDA, align 8, !tbaa !5
  %97 = icmp eq ptr %95, %96
  br i1 %97, label %98, label %102

98:                                               ; preds = %.thread48
  %99 = getelementptr inbounds i8, ptr %17, i64 8
  %100 = load ptr, ptr %99, align 8, !tbaa !13
  %101 = getelementptr inbounds i8, ptr %100, i64 16
  store i32 3, ptr %101, align 8, !tbaa !9
  br label %.loopexit

102:                                              ; preds = %.thread48
  store ptr null, ptr %9, align 8, !tbaa !5
  store ptr null, ptr %10, align 8, !tbaa !5
  store ptr null, ptr %11, align 8, !tbaa !5
  store ptr null, ptr %12, align 8, !tbaa !5
  call void (ptr, ...) @gc_protect(ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11, ptr noundef nonnull %12, ptr noundef null)
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = call ptr @lisp_eval(ptr noundef %28, ptr noundef %103)
  store ptr %104, ptr %9, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 16
  %106 = load i32, ptr %105, align 8, !tbaa !9
  switch i32 %106, label %.loopexit [
    i32 2, label %.preheader
    i32 3, label %117
  ]

.preheader:                                       ; preds = %102
  %.pn3473 = load ptr, ptr %3, align 8, !tbaa !5
  %storemerge32.in74 = getelementptr inbounds i8, ptr %.pn3473, i64 8
  %storemerge3275 = load ptr, ptr %storemerge32.in74, align 8, !tbaa !13
  store ptr %storemerge3275, ptr %11, align 8, !tbaa !5
  %.not3376 = icmp eq ptr %storemerge3275, null
  br i1 %.not3376, label %.preheader.._crit_edge_crit_edge, label %.lr.ph78

.preheader.._crit_edge_crit_edge:                 ; preds = %.preheader
  %.pre92 = load ptr, ptr %10, align 8, !tbaa !5
  br label %._crit_edge

.lr.ph78:                                         ; preds = %.preheader, %.lr.ph78
  %storemerge3277 = phi ptr [ %storemerge32, %.lr.ph78 ], [ %storemerge3275, %.preheader ]
  %107 = load ptr, ptr %storemerge3277, align 8, !tbaa !12
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = call ptr @lisp_eval(ptr noundef %107, ptr noundef %108)
  store ptr %109, ptr %12, align 8, !tbaa !5
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = call ptr @new_cons(ptr noundef %109, ptr noundef %110)
  store ptr %111, ptr %10, align 8, !tbaa !5
  %.pn34 = load ptr, ptr %11, align 8, !tbaa !5
  %storemerge32.in = getelementptr inbounds i8, ptr %.pn34, i64 8
  %storemerge32 = load ptr, ptr %storemerge32.in, align 8, !tbaa !13
  store ptr %storemerge32, ptr %11, align 8, !tbaa !5
  %.not33 = icmp eq ptr %storemerge32, null
  br i1 %.not33, label %._crit_edge.loopexit, label %.lr.ph78, !llvm.loop !17

._crit_edge.loopexit:                             ; preds = %.lr.ph78
  %.pre = load ptr, ptr %9, align 8, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %.preheader.._crit_edge_crit_edge, %._crit_edge.loopexit
  %112 = phi ptr [ %111, %._crit_edge.loopexit ], [ %.pre92, %.preheader.._crit_edge_crit_edge ]
  %113 = phi ptr [ %.pre, %._crit_edge.loopexit ], [ %104, %.preheader.._crit_edge_crit_edge ]
  %114 = load ptr, ptr %113, align 8, !tbaa !12
  %115 = call ptr @list_reverse(ptr noundef %112)
  %116 = call ptr %114(ptr noundef %115) #2
  call void @gc_pop()
  br label %.loopexit

117:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #2
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = call ptr @new_cons(ptr noundef null, ptr noundef %118)
  store ptr %119, ptr %13, align 8, !tbaa !5
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = load ptr, ptr %120, align 8, !tbaa !12
  store ptr %121, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #2
  store ptr null, ptr %14, align 8, !tbaa !5
  call void (ptr, ...) @gc_protect(ptr noundef nonnull %13, ptr noundef nonnull %14, ptr noundef null)
  %122 = load ptr, ptr %3, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 8
  %124 = load ptr, ptr %123, align 8, !tbaa !13
  store ptr %124, ptr %11, align 8, !tbaa !5
  %.not3061 = icmp eq ptr %124, null
  br i1 %.not3061, label %.preheader52, label %.lr.ph

.preheader52:                                     ; preds = %.lr.ph, %117
  %.pn62 = load ptr, ptr %9, align 8, !tbaa !5
  %storemerge.in63 = getelementptr inbounds i8, ptr %.pn62, i64 8
  %storemerge64 = load ptr, ptr %storemerge.in63, align 8, !tbaa !13
  store ptr %storemerge64, ptr %14, align 8, !tbaa !5
  %.not3165 = icmp eq ptr %storemerge64, null
  br i1 %.not3165, label %.thread49, label %.lr.ph67

.lr.ph:                                           ; preds = %117, %.lr.ph
  %125 = phi ptr [ %135, %.lr.ph ], [ %124, %117 ]
  %126 = load ptr, ptr %125, align 8, !tbaa !12
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = call ptr @lisp_eval(ptr noundef %126, ptr noundef %127)
  store ptr %128, ptr %12, align 8, !tbaa !5
  %129 = load ptr, ptr %13, align 8, !tbaa !5
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load ptr, ptr %130, align 8, !tbaa !12
  %132 = call ptr @env_set(ptr noundef %129, ptr noundef %131, ptr noundef %128)
  %133 = load ptr, ptr %11, align 8, !tbaa !5
  %134 = getelementptr inbounds i8, ptr %133, i64 8
  %135 = load ptr, ptr %134, align 8, !tbaa !13
  store ptr %135, ptr %11, align 8, !tbaa !5
  %136 = load ptr, ptr %10, align 8, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %136, i64 8
  %138 = load ptr, ptr %137, align 8, !tbaa !13
  store ptr %138, ptr %10, align 8, !tbaa !5
  %.not30 = icmp eq ptr %135, null
  br i1 %.not30, label %.preheader52, label %.lr.ph, !llvm.loop !18

.lr.ph67:                                         ; preds = %.preheader52, %143
  %storemerge66 = phi ptr [ %storemerge, %143 ], [ %storemerge64, %.preheader52 ]
  %139 = getelementptr inbounds i8, ptr %storemerge66, i64 8
  %140 = load ptr, ptr %139, align 8, !tbaa !13
  %141 = icmp eq ptr %140, null
  %142 = load ptr, ptr %storemerge66, align 8, !tbaa !12
  br i1 %141, label %146, label %143

143:                                              ; preds = %.lr.ph67
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = call ptr @lisp_eval(ptr noundef %142, ptr noundef %144)
  %.pn = load ptr, ptr %14, align 8, !tbaa !5
  %storemerge.in = getelementptr inbounds i8, ptr %.pn, i64 8
  %storemerge = load ptr, ptr %storemerge.in, align 8, !tbaa !13
  store ptr %storemerge, ptr %14, align 8, !tbaa !5
  %.not31 = icmp eq ptr %storemerge, null
  br i1 %.not31, label %.thread49, label %.lr.ph67, !llvm.loop !19

.thread49:                                        ; preds = %.preheader52, %143
  call void @gc_pop()
  call void @gc_pop()
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #2
  br label %.loopexit

146:                                              ; preds = %.lr.ph67
  store ptr %142, ptr %3, align 8, !tbaa !5
  %147 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %147, ptr %4, align 8, !tbaa !5
  call void @gc_pop()
  call void @gc_pop()
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #2
  br label %thread-pre-split

.loopexit:                                        ; preds = %thread-pre-split, %.lr.ph68, %102, %20, %2, %.thread49, %.loopexit90, %24, %._crit_edge, %98, %79, %41
  %.2 = phi ptr [ %44, %41 ], [ null, %.loopexit90 ], [ %92, %79 ], [ %100, %98 ], [ %116, %._crit_edge ], [ %26, %24 ], [ null, %.thread49 ], [ null, %2 ], [ %23, %20 ], [ null, %thread-pre-split ], [ %17, %.lr.ph68 ], [ null, %102 ]
  ret ptr %.2
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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, !11, i64 16}
!10 = !{!"object_t", !6, i64 0, !6, i64 8, !11, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !6, i64 0}
!13 = !{!10, !6, i64 8}
!14 = distinct !{!14, !15, !16}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!"llvm.loop.peeled.count", i32 1}
!17 = distinct !{!17, !15}
!18 = distinct !{!18, !15}
!19 = distinct !{!19, !15}


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