; LLVM IR from facebook/hermes :: API/hermes_sandbox/external (hermes_sandbox_impl_compiled_0)

; 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.w2c_hermes = type { ptr, ptr, ptr, i32, i32, i32, %struct.wasm_rt_memory_t, %struct.wasm_rt_funcref_table_t }
%struct.wasm_rt_memory_t = type { ptr, i64, i64, i64, i8 }
%struct.wasm_rt_funcref_table_t = type { ptr, i32, i32 }

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3Abigint_to_string0x28HermesABIRuntime0x2A0x2C0x20HermesABIBigInt0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %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 i64, align 8
  %21 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.w2c_hermes, ptr %22, i32 0, i32 3
  %24 = load i32, ptr %23, align 8, !tbaa !13
  store i32 %24, ptr %15, align 4, !tbaa !9
  store i32 224, ptr %16, align 4, !tbaa !9
  %25 = load i32, ptr %16, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  %27 = sub i32 %26, %25
  store i32 %27, ptr %15, align 4, !tbaa !9
  %28 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %28, ptr %9, align 4, !tbaa !9
  %29 = load i32, ptr %15, align 4, !tbaa !9
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.w2c_hermes, ptr %30, i32 0, i32 3
  store i32 %29, ptr %31, align 8, !tbaa !13
  %32 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %32, ptr %15, align 4, !tbaa !9
  store i32 37, ptr %16, align 4, !tbaa !9
  %33 = load i32, ptr %16, align 4, !tbaa !9
  %34 = load i32, ptr %15, align 4, !tbaa !9
  %35 = sub i32 %34, %33
  store i32 %35, ptr %15, align 4, !tbaa !9
  store i32 -36, ptr %16, align 4, !tbaa !9
  %36 = load i32, ptr %15, align 4, !tbaa !9
  %37 = load i32, ptr %16, align 4, !tbaa !9
  %38 = icmp ule i32 %36, %37
  %39 = zext i1 %38 to i32
  store i32 %39, ptr %15, align 4, !tbaa !9
  %40 = load i32, ptr %15, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 0
  br i1 %41, label %42, label %53

42:                                               ; preds = %4
  %43 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %43, ptr %15, align 4, !tbaa !9
  store i32 96, ptr %16, align 4, !tbaa !9
  %44 = load i32, ptr %16, align 4, !tbaa !9
  %45 = load i32, ptr %15, align 4, !tbaa !9
  %46 = add i32 %45, %44
  store i32 %46, ptr %15, align 4, !tbaa !9
  store i32 110791, ptr %16, align 4, !tbaa !9
  store i32 30, ptr %17, align 4, !tbaa !9
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load i32, ptr %15, align 4, !tbaa !9
  %49 = load i32, ptr %16, align 4, !tbaa !9
  %50 = load i32, ptr %17, align 4, !tbaa !9
  %51 = call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fassign_external0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %47, i32 noundef %48, i32 noundef %49, i32 noundef %50)
  store i32 %51, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %15, align 4, !tbaa !9
  %52 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %52, ptr %8, align 4, !tbaa !9
  br label %327

53:                                               ; preds = %4
  %54 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %54, ptr %15, align 4, !tbaa !9
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.w2c_hermes, ptr %55, i32 0, i32 6
  %57 = load i32, ptr %15, align 4, !tbaa !9
  %58 = zext i32 %57 to i64
  %59 = add i64 %58, 4
  %60 = call i32 @i32_load(ptr noundef %56, i64 noundef %59)
  store i32 %60, ptr %15, align 4, !tbaa !9
  %61 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %61, ptr %10, align 4, !tbaa !9
  %62 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %62, ptr %15, align 4, !tbaa !9
  store i64 48, ptr %21, align 8, !tbaa !11
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.w2c_hermes, ptr %63, i32 0, i32 6
  %65 = load i32, ptr %15, align 4, !tbaa !9
  %66 = zext i32 %65 to i64
  %67 = add i64 %66, 32
  %68 = load i64, ptr %21, align 8, !tbaa !11
  call void @i64_store(ptr noundef %64, i64 noundef %67, i64 noundef %68)
  %69 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %69, ptr %15, align 4, !tbaa !9
  %70 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %70, ptr %16, align 4, !tbaa !9
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.w2c_hermes, ptr %71, i32 0, i32 6
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = zext i32 %73 to i64
  %75 = add i64 %74, 28
  %76 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %72, i64 noundef %75, i32 noundef %76)
  %77 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %77, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.w2c_hermes, ptr %78, i32 0, i32 6
  %80 = load i32, ptr %15, align 4, !tbaa !9
  %81 = zext i32 %80 to i64
  %82 = add i64 %81, 24
  %83 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %79, i64 noundef %82, i32 noundef %83)
  %84 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %84, ptr %15, align 4, !tbaa !9
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.w2c_hermes, ptr %85, i32 0, i32 6
  %87 = load i32, ptr %15, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = add i64 %88, 4
  %90 = call i32 @i32_load(ptr noundef %86, i64 noundef %89)
  store i32 %90, ptr %15, align 4, !tbaa !9
  %91 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %91, ptr %11, align 4, !tbaa !9
  %92 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %92, ptr %15, align 4, !tbaa !9
  store i32 188, ptr %16, align 4, !tbaa !9
  %93 = load i32, ptr %16, align 4, !tbaa !9
  %94 = load i32, ptr %15, align 4, !tbaa !9
  %95 = add i32 %94, %93
  store i32 %95, ptr %15, align 4, !tbaa !9
  %96 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %96, ptr %12, align 4, !tbaa !9
  %97 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %97, ptr %16, align 4, !tbaa !9
  store i32 48, ptr %17, align 4, !tbaa !9
  %98 = load i32, ptr %17, align 4, !tbaa !9
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = add i32 %99, %98
  store i32 %100, ptr %16, align 4, !tbaa !9
  %101 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %101, ptr %13, align 4, !tbaa !9
  %102 = load ptr, ptr %5, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.w2c_hermes, ptr %102, i32 0, i32 6
  %104 = load i32, ptr %15, align 4, !tbaa !9
  %105 = zext i32 %104 to i64
  %106 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %103, i64 noundef %105, i32 noundef %106)
  %107 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %107, ptr %15, align 4, !tbaa !9
  store i64 17179869185, ptr %21, align 8, !tbaa !11
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct.w2c_hermes, ptr %108, i32 0, i32 6
  %110 = load i32, ptr %15, align 4, !tbaa !9
  %111 = zext i32 %110 to i64
  %112 = add i64 %111, 180
  %113 = load i64, ptr %21, align 8, !tbaa !11
  call void @i64_store(ptr noundef %109, i64 noundef %112, i64 noundef %113)
  %114 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %114, ptr %15, align 4, !tbaa !9
  %115 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %115, ptr %16, align 4, !tbaa !9
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.w2c_hermes, ptr %116, i32 0, i32 6
  %118 = load i32, ptr %15, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  %120 = add i64 %119, 176
  %121 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %117, i64 noundef %120, i32 noundef %121)
  %122 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %122, ptr %15, align 4, !tbaa !9
  %123 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %123, ptr %16, align 4, !tbaa !9
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.w2c_hermes, ptr %124, i32 0, i32 6
  %126 = load i32, ptr %15, align 4, !tbaa !9
  %127 = zext i32 %126 to i64
  %128 = add i64 %127, 40
  %129 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %125, i64 noundef %128, i32 noundef %129)
  %130 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %130, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !9
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.w2c_hermes, ptr %131, i32 0, i32 6
  %133 = load i32, ptr %15, align 4, !tbaa !9
  %134 = zext i32 %133 to i64
  %135 = add i64 %134, 212
  %136 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %132, i64 noundef %135, i32 noundef %136)
  %137 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %137, ptr %15, align 4, !tbaa !9
  %138 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %138, ptr %16, align 4, !tbaa !9
  store i32 176, ptr %17, align 4, !tbaa !9
  %139 = load i32, ptr %17, align 4, !tbaa !9
  %140 = load i32, ptr %16, align 4, !tbaa !9
  %141 = add i32 %140, %139
  store i32 %141, ptr %16, align 4, !tbaa !9
  %142 = load ptr, ptr %5, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.w2c_hermes, ptr %142, i32 0, i32 6
  %144 = load i32, ptr %15, align 4, !tbaa !9
  %145 = zext i32 %144 to i64
  %146 = add i64 %145, 208
  %147 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %143, i64 noundef %146, i32 noundef %147)
  %148 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %148, ptr %15, align 4, !tbaa !9
  %149 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %149, ptr %16, align 4, !tbaa !9
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.w2c_hermes, ptr %150, i32 0, i32 6
  %152 = load i32, ptr %15, align 4, !tbaa !9
  %153 = zext i32 %152 to i64
  %154 = add i64 %153, 204
  %155 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %151, i64 noundef %154, i32 noundef %155)
  %156 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %156, ptr %15, align 4, !tbaa !9
  %157 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %157, ptr %16, align 4, !tbaa !9
  store i32 24, ptr %17, align 4, !tbaa !9
  %158 = load i32, ptr %17, align 4, !tbaa !9
  %159 = load i32, ptr %16, align 4, !tbaa !9
  %160 = add i32 %159, %158
  store i32 %160, ptr %16, align 4, !tbaa !9
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.w2c_hermes, ptr %161, i32 0, i32 6
  %163 = load i32, ptr %15, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = add i64 %164, 4
  %166 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %162, i64 noundef %165, i32 noundef %166)
  %167 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %167, ptr %15, align 4, !tbaa !9
  %168 = load ptr, ptr %5, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.w2c_hermes, ptr %168, i32 0, i32 6
  %170 = load i32, ptr %15, align 4, !tbaa !9
  %171 = zext i32 %170 to i64
  %172 = add i64 %171, 4
  %173 = call i32 @i32_load(ptr noundef %169, i64 noundef %172)
  store i32 %173, ptr %15, align 4, !tbaa !9
  %174 = load i32, ptr %15, align 4, !tbaa !9
  %175 = icmp ne i32 %174, 0
  %176 = xor i1 %175, true
  %177 = zext i1 %176 to i32
  store i32 %177, ptr %15, align 4, !tbaa !9
  %178 = load i32, ptr %15, align 4, !tbaa !9
  %179 = icmp ne i32 %178, 0
  br i1 %179, label %180, label %181

180:                                              ; preds = %53
  br label %336

181:                                              ; preds = %53
  %182 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %182, ptr %15, align 4, !tbaa !9
  %183 = load ptr, ptr %5, align 8, !tbaa !5
  %184 = getelementptr inbounds %struct.w2c_hermes, ptr %183, i32 0, i32 6
  %185 = load i32, ptr %15, align 4, !tbaa !9
  %186 = zext i32 %185 to i64
  %187 = add i64 %186, 8
  %188 = call i64 @i64_load(ptr noundef %184, i64 noundef %187)
  store i64 %188, ptr %20, align 8, !tbaa !11
  %189 = load i64, ptr %20, align 8, !tbaa !11
  store i64 %189, ptr %14, align 8, !tbaa !11
  store i64 -844424930131969, ptr %21, align 8, !tbaa !11
  %190 = load i64, ptr %20, align 8, !tbaa !11
  %191 = load i64, ptr %21, align 8, !tbaa !11
  %192 = icmp ule i64 %190, %191
  %193 = zext i1 %192 to i32
  store i32 %193, ptr %15, align 4, !tbaa !9
  %194 = load i32, ptr %15, align 4, !tbaa !9
  %195 = icmp ne i32 %194, 0
  br i1 %195, label %196, label %197

196:                                              ; preds = %181
  br label %342

197:                                              ; preds = %181
  %198 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %198, ptr %20, align 8, !tbaa !11
  %199 = load i64, ptr %20, align 8, !tbaa !11
  %200 = trunc i64 %199 to i32
  store i32 %200, ptr %15, align 4, !tbaa !9
  %201 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %201, ptr %7, align 4, !tbaa !9
  %202 = load i32, ptr %15, align 4, !tbaa !9
  %203 = icmp ne i32 %202, 0
  %204 = xor i1 %203, true
  %205 = zext i1 %204 to i32
  store i32 %205, ptr %15, align 4, !tbaa !9
  %206 = load i32, ptr %15, align 4, !tbaa !9
  %207 = icmp ne i32 %206, 0
  br i1 %207, label %208, label %209

208:                                              ; preds = %197
  br label %348

209:                                              ; preds = %197
  %210 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %210, ptr %15, align 4, !tbaa !9
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.w2c_hermes, ptr %211, i32 0, i32 6
  %213 = load i32, ptr %15, align 4, !tbaa !9
  %214 = zext i32 %213 to i64
  %215 = add i64 %214, 3
  %216 = call i32 @i32_load8_u(ptr noundef %212, i64 noundef %215)
  store i32 %216, ptr %15, align 4, !tbaa !9
  store i32 24, ptr %16, align 4, !tbaa !9
  %217 = load i32, ptr %16, align 4, !tbaa !9
  %218 = and i32 %217, 31
  %219 = load i32, ptr %15, align 4, !tbaa !9
  %220 = shl i32 %219, %218
  store i32 %220, ptr %15, align 4, !tbaa !9
  store i32 1291845632, ptr %16, align 4, !tbaa !9
  %221 = load i32, ptr %15, align 4, !tbaa !9
  %222 = load i32, ptr %16, align 4, !tbaa !9
  %223 = icmp ne i32 %221, %222
  %224 = zext i1 %223 to i32
  store i32 %224, ptr %15, align 4, !tbaa !9
  %225 = load i32, ptr %15, align 4, !tbaa !9
  %226 = icmp ne i32 %225, 0
  br i1 %226, label %227, label %228

227:                                              ; preds = %209
  br label %354

228:                                              ; preds = %209
  %229 = load i64, ptr %14, align 8, !tbaa !11
  store i64 %229, ptr %20, align 8, !tbaa !11
  store i64 48, ptr %21, align 8, !tbaa !11
  %230 = load i64, ptr %20, align 8, !tbaa !11
  %231 = load i64, ptr %21, align 8, !tbaa !11
  %232 = and i64 %231, 63
  %233 = ashr i64 %230, %232
  store i64 %233, ptr %20, align 8, !tbaa !11
  %234 = load i64, ptr %20, align 8, !tbaa !11
  %235 = trunc i64 %234 to i32
  store i32 %235, ptr %15, align 4, !tbaa !9
  store i32 -2, ptr %16, align 4, !tbaa !9
  %236 = load i32, ptr %15, align 4, !tbaa !9
  %237 = load i32, ptr %16, align 4, !tbaa !9
  %238 = icmp ne i32 %236, %237
  %239 = zext i1 %238 to i32
  store i32 %239, ptr %15, align 4, !tbaa !9
  %240 = load i32, ptr %15, align 4, !tbaa !9
  %241 = icmp ne i32 %240, 0
  br i1 %241, label %242, label %243

242:                                              ; preds = %228
  br label %360

243:                                              ; preds = %228
  %244 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %244, ptr %15, align 4, !tbaa !9
  %245 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %245, ptr %16, align 4, !tbaa !9
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.w2c_hermes, ptr %246, i32 0, i32 6
  %248 = load i32, ptr %15, align 4, !tbaa !9
  %249 = zext i32 %248 to i64
  %250 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store(ptr noundef %247, i64 noundef %249, i32 noundef %250)
  %251 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %251, ptr %15, align 4, !tbaa !9
  store i32 1, ptr %16, align 4, !tbaa !9
  %252 = load ptr, ptr %5, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.w2c_hermes, ptr %252, i32 0, i32 6
  %254 = load i32, ptr %15, align 4, !tbaa !9
  %255 = zext i32 %254 to i64
  %256 = add i64 %255, 4
  %257 = load i32, ptr %16, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %253, i64 noundef %256, i32 noundef %257)
  %258 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %258, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %259 = load i32, ptr %16, align 4, !tbaa !9
  %260 = load i32, ptr %15, align 4, !tbaa !9
  %261 = add i32 %260, %259
  store i32 %261, ptr %15, align 4, !tbaa !9
  %262 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %262, ptr %16, align 4, !tbaa !9
  %263 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %263, ptr %17, align 4, !tbaa !9
  %264 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %264, ptr %18, align 4, !tbaa !9
  store i32 255, ptr %19, align 4, !tbaa !9
  %265 = load i32, ptr %19, align 4, !tbaa !9
  %266 = load i32, ptr %18, align 4, !tbaa !9
  %267 = and i32 %266, %265
  store i32 %267, ptr %18, align 4, !tbaa !9
  %268 = load ptr, ptr %5, align 8, !tbaa !5
  %269 = load i32, ptr %15, align 4, !tbaa !9
  %270 = load i32, ptr %16, align 4, !tbaa !9
  %271 = load i32, ptr %17, align 4, !tbaa !9
  %272 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AtoString0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x2C0x20unsigned0x20char0x29(ptr noundef %268, i32 noundef %269, i32 noundef %270, i32 noundef %271, i32 noundef %272)
  store i32 5, ptr %15, align 4, !tbaa !9
  %273 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %273, ptr %8, align 4, !tbaa !9
  %274 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %274, ptr %15, align 4, !tbaa !9
  %275 = load ptr, ptr %5, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.w2c_hermes, ptr %275, i32 0, i32 6
  %277 = load i32, ptr %15, align 4, !tbaa !9
  %278 = zext i32 %277 to i64
  %279 = add i64 %278, 8
  %280 = call i32 @i32_load(ptr noundef %276, i64 noundef %279)
  store i32 %280, ptr %15, align 4, !tbaa !9
  %281 = load i32, ptr %15, align 4, !tbaa !9
  switch i32 %281, label %284 [
    i32 0, label %282
    i32 1, label %283
  ]

282:                                              ; preds = %243
  br label %319

283:                                              ; preds = %243
  br label %291

284:                                              ; preds = %243
  br label %285

285:                                              ; preds = %284
  store i32 109639, ptr %15, align 4, !tbaa !9
  store i32 77564, ptr %16, align 4, !tbaa !9
  store i32 179, ptr %17, align 4, !tbaa !9
  store i32 90402, ptr %18, align 4, !tbaa !9
  %286 = load ptr, ptr %5, align 8, !tbaa !5
  %287 = load i32, ptr %15, align 4, !tbaa !9
  %288 = load i32, ptr %16, align 4, !tbaa !9
  %289 = load i32, ptr %17, align 4, !tbaa !9
  %290 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %286, i32 noundef %287, i32 noundef %288, i32 noundef %289, i32 noundef %290)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

291:                                              ; preds = %283
  %292 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %292, ptr %15, align 4, !tbaa !9
  %293 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %293, ptr %16, align 4, !tbaa !9
  %294 = load ptr, ptr %5, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.w2c_hermes, ptr %294, i32 0, i32 6
  %296 = load i32, ptr %16, align 4, !tbaa !9
  %297 = zext i32 %296 to i64
  %298 = add i64 %297, 16
  %299 = call i64 @i64_load(ptr noundef %295, i64 noundef %298)
  store i64 %299, ptr %21, align 8, !tbaa !11
  %300 = load ptr, ptr %5, align 8, !tbaa !5
  %301 = getelementptr inbounds %struct.w2c_hermes, ptr %300, i32 0, i32 6
  %302 = load i32, ptr %15, align 4, !tbaa !9
  %303 = zext i32 %302 to i64
  %304 = add i64 %303, 216
  %305 = load i64, ptr %21, align 8, !tbaa !11
  call void @i64_store(ptr noundef %301, i64 noundef %304, i64 noundef %305)
  %306 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %306, ptr %15, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %307 = load i32, ptr %16, align 4, !tbaa !9
  %308 = load i32, ptr %15, align 4, !tbaa !9
  %309 = add i32 %308, %307
  store i32 %309, ptr %15, align 4, !tbaa !9
  %310 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %310, ptr %16, align 4, !tbaa !9
  store i32 216, ptr %17, align 4, !tbaa !9
  %311 = load i32, ptr %17, align 4, !tbaa !9
  %312 = load i32, ptr %16, align 4, !tbaa !9
  %313 = add i32 %312, %311
  store i32 %313, ptr %16, align 4, !tbaa !9
  %314 = load ptr, ptr %5, align 8, !tbaa !5
  %315 = load i32, ptr %15, align 4, !tbaa !9
  %316 = load i32, ptr %16, align 4, !tbaa !9
  %317 = call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef %314, i32 noundef %315, i32 noundef %316)
  store i32 %317, ptr %15, align 4, !tbaa !9
  %318 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %318, ptr %8, align 4, !tbaa !9
  br label %319

319:                                              ; preds = %291, %282
  %320 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %320, ptr %15, align 4, !tbaa !9
  store i32 24, ptr %16, align 4, !tbaa !9
  %321 = load i32, ptr %16, align 4, !tbaa !9
  %322 = load i32, ptr %15, align 4, !tbaa !9
  %323 = add i32 %322, %321
  store i32 %323, ptr %15, align 4, !tbaa !9
  %324 = load ptr, ptr %5, align 8, !tbaa !5
  %325 = load i32, ptr %15, align 4, !tbaa !9
  %326 = call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A0x7EGCScope0x280x29(ptr noundef %324, i32 noundef %325)
  store i32 %326, ptr %15, align 4, !tbaa !9
  br label %327

327:                                              ; preds = %319, %42
  %328 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %328, ptr %15, align 4, !tbaa !9
  store i32 224, ptr %16, align 4, !tbaa !9
  %329 = load i32, ptr %16, align 4, !tbaa !9
  %330 = load i32, ptr %15, align 4, !tbaa !9
  %331 = add i32 %330, %329
  store i32 %331, ptr %15, align 4, !tbaa !9
  %332 = load i32, ptr %15, align 4, !tbaa !9
  %333 = load ptr, ptr %5, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.w2c_hermes, ptr %333, i32 0, i32 3
  store i32 %332, ptr %334, align 8, !tbaa !13
  %335 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %335, ptr %15, align 4, !tbaa !9
  br label %366

336:                                              ; preds = %180
  store i32 131111, ptr %15, align 4, !tbaa !9
  store i32 61000, ptr %16, align 4, !tbaa !9
  store i32 95, ptr %17, align 4, !tbaa !9
  store i32 90287, ptr %18, align 4, !tbaa !9
  %337 = load ptr, ptr %5, align 8, !tbaa !5
  %338 = load i32, ptr %15, align 4, !tbaa !9
  %339 = load i32, ptr %16, align 4, !tbaa !9
  %340 = load i32, ptr %17, align 4, !tbaa !9
  %341 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %337, i32 noundef %338, i32 noundef %339, i32 noundef %340, i32 noundef %341)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

342:                                              ; preds = %196
  store i32 146777, ptr %15, align 4, !tbaa !9
  store i32 82692, ptr %16, align 4, !tbaa !9
  store i32 43, ptr %17, align 4, !tbaa !9
  store i32 24718, ptr %18, align 4, !tbaa !9
  %343 = load ptr, ptr %5, align 8, !tbaa !5
  %344 = load i32, ptr %15, align 4, !tbaa !9
  %345 = load i32, ptr %16, align 4, !tbaa !9
  %346 = load i32, ptr %17, align 4, !tbaa !9
  %347 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %343, i32 noundef %344, i32 noundef %345, i32 noundef %346, i32 noundef %347)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

348:                                              ; preds = %208
  store i32 147142, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  store i32 106, ptr %17, align 4, !tbaa !9
  store i32 28119, ptr %18, align 4, !tbaa !9
  %349 = load ptr, ptr %5, align 8, !tbaa !5
  %350 = load i32, ptr %15, align 4, !tbaa !9
  %351 = load i32, ptr %16, align 4, !tbaa !9
  %352 = load i32, ptr %17, align 4, !tbaa !9
  %353 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %349, i32 noundef %350, i32 noundef %351, i32 noundef %352, i32 noundef %353)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

354:                                              ; preds = %227
  store i32 205012, ptr %15, align 4, !tbaa !9
  store i32 82611, ptr %16, align 4, !tbaa !9
  store i32 255, ptr %17, align 4, !tbaa !9
  store i32 24720, ptr %18, align 4, !tbaa !9
  %355 = load ptr, ptr %5, align 8, !tbaa !5
  %356 = load i32, ptr %15, align 4, !tbaa !9
  %357 = load i32, ptr %16, align 4, !tbaa !9
  %358 = load i32, ptr %17, align 4, !tbaa !9
  %359 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %355, i32 noundef %356, i32 noundef %357, i32 noundef %358, i32 noundef %359)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

360:                                              ; preds = %242
  store i32 117977, ptr %15, align 4, !tbaa !9
  store i32 83341, ptr %16, align 4, !tbaa !9
  store i32 475, ptr %17, align 4, !tbaa !9
  store i32 27558, ptr %18, align 4, !tbaa !9
  %361 = load ptr, ptr %5, align 8, !tbaa !5
  %362 = load i32, ptr %15, align 4, !tbaa !9
  %363 = load i32, ptr %16, align 4, !tbaa !9
  %364 = load i32, ptr %17, align 4, !tbaa !9
  %365 = load i32, ptr %18, align 4, !tbaa !9
  call void @w2c_hermes_0x5F_assert_fail(ptr noundef %361, i32 noundef %362, i32 noundef %363, i32 noundef %364, i32 noundef %365)
  call void @wasm_rt_trap(i32 noundef 5) #6
  unreachable

366:                                              ; preds = %327
  %367 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  ret i32 %367
}

; 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store8(ptr noundef, i64 noundef, i32 noundef) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #0

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

declare i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fassign_external0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #4

declare i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A0x7EGCScope0x280x29(ptr noundef, i32 noundef) #4

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AtoString0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x2C0x20unsigned0x20char0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

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 = { noreturn "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 #3 = { inlinehint 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 #4 = { "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 #5 = { nounwind }
attributes #6 = { noreturn }

!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 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 24}
!14 = !{!"w2c_hermes", !6, i64 0, !6, i64 8, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 40, !17, i64 80}
!15 = !{!"", !6, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !16, i64 32}
!16 = !{!"_Bool", !7, i64 0}
!17 = !{!"", !6, i64 0, !10, i64 8, !10, i64 12}


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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3Abigint_to_string0x28HermesABIRuntime0x2A0x2C0x20HermesABIBigInt0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = getelementptr inbounds i8, ptr %0, i64 24
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add i32 %6, -224
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = add i32 %3, -37
  %9 = icmp ult i32 %8, -35
  br i1 %9, label %10, label %13

10:                                               ; preds = %4
  %11 = add i32 %1, 96
  %12 = tail call i32 @w2c_hermes_std0x3A0x3A_0x5F20x3A0x3Abasic_string0x3Cchar0x2C0x20std0x3A0x3A_0x5F20x3A0x3Achar_traits0x3Cchar0x3E0x2C0x20std0x3A0x3A_0x5F20x3A0x3Aallocator0x3Cchar0x3E0x3E0x3A0x3A_0x5Fassign_external0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef nonnull %0, i32 noundef %11, i32 noundef 110791, i32 noundef 30) #4
  br label %65

13:                                               ; preds = %4
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = zext i32 %1 to i64
  %16 = add nuw nsw i64 %15, 4
  %17 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %16)
  %18 = zext i32 %7 to i64
  %19 = add nuw nsw i64 %18, 32
  tail call void @i64_store(ptr noundef nonnull %14, i64 noundef %19, i64 noundef 48)
  %20 = add nuw nsw i64 %18, 28
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %20, i32 noundef %17)
  %21 = add nuw nsw i64 %18, 24
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %21, i32 noundef 0)
  %22 = zext i32 %17 to i64
  %23 = add nuw nsw i64 %22, 4
  %24 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %23)
  %25 = add i32 %6, -36
  %26 = add i32 %6, -176
  %27 = zext i32 %25 to i64
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %27, i32 noundef %26)
  %28 = add nuw nsw i64 %18, 180
  tail call void @i64_store(ptr noundef nonnull %14, i64 noundef %28, i64 noundef 17179869185)
  %29 = add nuw nsw i64 %18, 176
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %29, i32 noundef %25)
  %30 = add nuw nsw i64 %18, 40
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %30, i32 noundef %24)
  %31 = add nuw nsw i64 %18, 212
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %31, i32 noundef 0)
  %32 = add i32 %6, -48
  %33 = add nuw nsw i64 %18, 208
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %33, i32 noundef %32)
  %34 = add nuw nsw i64 %18, 204
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %34, i32 noundef %26)
  %35 = add i32 %6, -200
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %23, i32 noundef %35)
  %36 = zext i32 %2 to i64
  %37 = add nuw nsw i64 %36, 4
  %38 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %37)
  %.not = icmp eq i32 %38, 0
  br i1 %.not, label %66, label %39

39:                                               ; preds = %13
  %40 = add nuw nsw i64 %36, 8
  %41 = tail call i64 @i64_load(ptr noundef nonnull %14, i64 noundef %40)
  %42 = icmp ult i64 %41, -844424930131968
  br i1 %42, label %67, label %43

43:                                               ; preds = %39
  %44 = trunc i64 %41 to i32
  %.not207 = icmp eq i32 %44, 0
  br i1 %.not207, label %68, label %45

45:                                               ; preds = %43
  %46 = and i64 %41, 4294967295
  %47 = add nuw nsw i64 %46, 3
  %48 = tail call i32 @i32_load8_u(ptr noundef nonnull %14, i64 noundef %47)
  %.mask = and i32 %48, 255
  %.not208 = icmp eq i32 %.mask, 77
  br i1 %.not208, label %49, label %69

49:                                               ; preds = %45
  %.mask210 = and i64 %41, -281474976710656
  %.not209 = icmp eq i64 %.mask210, -562949953421312
  br i1 %.not209, label %50, label %70

50:                                               ; preds = %49
  tail call void @i32_store(ptr noundef nonnull %14, i64 noundef %18, i32 noundef %44)
  %51 = add nuw nsw i64 %18, 4
  tail call void @i32_store8(ptr noundef nonnull %14, i64 noundef %51, i32 noundef 1)
  %52 = add i32 %6, -216
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AtoString0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x2C0x20unsigned0x20char0x29(ptr noundef nonnull %0, i32 noundef %52, i32 noundef %17, i32 noundef %7, i32 noundef %3) #4
  %53 = add nuw nsw i64 %18, 8
  %54 = tail call i32 @i32_load(ptr noundef nonnull %14, i64 noundef %53)
  switch i32 %54, label %55 [
    i32 0, label %63
    i32 1, label %56
  ]

55:                                               ; preds = %50
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 109639, i32 noundef 77564, i32 noundef 179, i32 noundef 90402)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

56:                                               ; preds = %50
  %57 = add nuw nsw i64 %18, 16
  %58 = tail call i64 @i64_load(ptr noundef nonnull %14, i64 noundef %57)
  %59 = add nuw nsw i64 %18, 216
  tail call void @i64_store(ptr noundef nonnull %14, i64 noundef %59, i64 noundef %58)
  %60 = add i32 %1, 16
  %61 = add i32 %6, -8
  %62 = tail call i32 @w2c_hermes_0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x260x20hermes0x3A0x3AManagedChunkedList0x3C0x28anonymous0x20namespace0x290x3A0x3AManagedValue0x3Chermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x3E0x2C0x2016ul0x3E0x3A0x3Aadd0x3Chermes0x3A0x3Avm0x3A0x3AHermesValue0x260x3E0x28hermes0x3A0x3Avm0x3A0x3AHermesValue0x260x29(ptr noundef nonnull %0, i32 noundef %60, i32 noundef %61)
  br label %63

63:                                               ; preds = %50, %56
  %.0 = phi i32 [ %62, %56 ], [ 5, %50 ]
  %64 = tail call i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AGCScope0x3A0x3A0x7EGCScope0x280x29(ptr noundef nonnull %0, i32 noundef %35) #4
  br label %65

65:                                               ; preds = %63, %10
  %.1 = phi i32 [ 1, %10 ], [ %.0, %63 ]
  store i32 %6, ptr %5, align 8, !tbaa !5
  ret i32 %.1

66:                                               ; preds = %13
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 131111, i32 noundef 61000, i32 noundef 95, i32 noundef 90287)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

67:                                               ; preds = %39
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 146777, i32 noundef 82692, i32 noundef 43, i32 noundef 24718)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

68:                                               ; preds = %43
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 147142, i32 noundef 82611, i32 noundef 106, i32 noundef 28119)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

69:                                               ; preds = %45
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 205012, i32 noundef 82611, i32 noundef 255, i32 noundef 24720)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable

70:                                               ; preds = %49
  tail call void @w2c_hermes_0x5F_assert_fail(ptr noundef nonnull %0, i32 noundef 117977, i32 noundef 83341, i32 noundef 475, i32 noundef 27558)
  tail call void @wasm_rt_trap(i32 noundef 5) #5
  unreachable
}

; Function Attrs: noreturn
declare void @wasm_rt_trap(i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @i64_load(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i64_store(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load8_u(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @i32_store8(ptr noundef, i64 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @w2c_hermes_0x5F_assert_fail(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

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

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

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

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3A0x3AtoString0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APseudoHandle0x3Chermes0x3A0x3Avm0x3A0x3ABigIntPrimitive0x3E0x2C0x20unsigned0x20char0x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 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 = { noreturn "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 = { inlinehint 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 #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 }
attributes #5 = { noreturn 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, !10, i64 24}
!6 = !{!"w2c_hermes", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40, !14, i64 80}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"", !7, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !13, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!"", !7, i64 0, !10, i64 8, !10, i64 12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass