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

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

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

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

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

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

declare i32 @w2c_hermes_0x5F_memcpy(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3Acircular_raw_ostream0x3A0x3Awrite_impl0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) #3 {
  %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 i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  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) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %18 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %18, ptr %12, align 4, !tbaa !9
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.w2c_hermes, ptr %19, i32 0, i32 6
  %21 = load i32, ptr %12, align 4, !tbaa !9
  %22 = zext i32 %21 to i64
  %23 = add i64 %22, 28
  %24 = call i32 @i32_load(ptr noundef %20, i64 noundef %23)
  store i32 %24, ptr %12, align 4, !tbaa !9
  %25 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %25, ptr %11, align 4, !tbaa !9
  %26 = load i32, ptr %12, align 4, !tbaa !9
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %159

28:                                               ; preds = %4
  %29 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %29, ptr %12, align 4, !tbaa !9
  %30 = load i32, ptr %12, align 4, !tbaa !9
  %31 = icmp ne i32 %30, 0
  br i1 %31, label %32, label %158

32:                                               ; preds = %28
  %33 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %33, ptr %12, align 4, !tbaa !9
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.w2c_hermes, ptr %34, i32 0, i32 6
  %36 = load i32, ptr %12, align 4, !tbaa !9
  %37 = zext i32 %36 to i64
  %38 = add i64 %37, 32
  %39 = call i32 @i32_load(ptr noundef %35, i64 noundef %38)
  store i32 %39, ptr %12, align 4, !tbaa !9
  %40 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %40, ptr %9, align 4, !tbaa !9
  %41 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %41, ptr %12, align 4, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.w2c_hermes, ptr %42, i32 0, i32 6
  %44 = load i32, ptr %12, align 4, !tbaa !9
  %45 = zext i32 %44 to i64
  %46 = add i64 %45, 36
  %47 = call i32 @i32_load(ptr noundef %43, i64 noundef %46)
  store i32 %47, ptr %12, align 4, !tbaa !9
  %48 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %48, ptr %10, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %156, %32
  %50 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %50, ptr %12, align 4, !tbaa !9
  %51 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %51, ptr %13, align 4, !tbaa !9
  %52 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %52, ptr %14, align 4, !tbaa !9
  %53 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %53, ptr %15, align 4, !tbaa !9
  %54 = load i32, ptr %15, align 4, !tbaa !9
  %55 = load i32, ptr %14, align 4, !tbaa !9
  %56 = sub i32 %55, %54
  store i32 %56, ptr %14, align 4, !tbaa !9
  %57 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %57, ptr %15, align 4, !tbaa !9
  %58 = load i32, ptr %15, align 4, !tbaa !9
  %59 = load i32, ptr %14, align 4, !tbaa !9
  %60 = add i32 %59, %58
  store i32 %60, ptr %14, align 4, !tbaa !9
  %61 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %61, ptr %9, align 4, !tbaa !9
  %62 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %62, ptr %15, align 4, !tbaa !9
  %63 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %63, ptr %16, align 4, !tbaa !9
  %64 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %64, ptr %17, align 4, !tbaa !9
  %65 = load i32, ptr %16, align 4, !tbaa !9
  %66 = load i32, ptr %17, align 4, !tbaa !9
  %67 = icmp ugt i32 %65, %66
  %68 = zext i1 %67 to i32
  store i32 %68, ptr %16, align 4, !tbaa !9
  %69 = load i32, ptr %16, align 4, !tbaa !9
  %70 = icmp ne i32 %69, 0
  br i1 %70, label %71, label %73

71:                                               ; preds = %49
  %72 = load i32, ptr %14, align 4, !tbaa !9
  br label %75

73:                                               ; preds = %49
  %74 = load i32, ptr %15, align 4, !tbaa !9
  br label %75

75:                                               ; preds = %73, %71
  %76 = phi i32 [ %72, %71 ], [ %74, %73 ]
  store i32 %76, ptr %14, align 4, !tbaa !9
  %77 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %77, ptr %9, align 4, !tbaa !9
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load i32, ptr %12, align 4, !tbaa !9
  %80 = load i32, ptr %13, align 4, !tbaa !9
  %81 = load i32, ptr %14, align 4, !tbaa !9
  %82 = call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %78, i32 noundef %79, i32 noundef %80, i32 noundef %81)
  store i32 %82, ptr %12, align 4, !tbaa !9
  %83 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %83, ptr %12, align 4, !tbaa !9
  %84 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %84, ptr %13, 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 %13, align 4, !tbaa !9
  %88 = zext i32 %87 to i64
  %89 = add i64 %88, 36
  %90 = call i32 @i32_load(ptr noundef %86, i64 noundef %89)
  store i32 %90, ptr %13, align 4, !tbaa !9
  %91 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %91, ptr %14, align 4, !tbaa !9
  %92 = load i32, ptr %14, align 4, !tbaa !9
  %93 = load i32, ptr %13, align 4, !tbaa !9
  %94 = add i32 %93, %92
  store i32 %94, ptr %13, align 4, !tbaa !9
  %95 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %95, ptr %10, align 4, !tbaa !9
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.w2c_hermes, ptr %96, i32 0, i32 6
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = zext i32 %98 to i64
  %100 = add i64 %99, 36
  %101 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %97, i64 noundef %100, i32 noundef %101)
  %102 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %102, ptr %12, align 4, !tbaa !9
  %103 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %103, ptr %13, align 4, !tbaa !9
  %104 = load i32, ptr %13, align 4, !tbaa !9
  %105 = load i32, ptr %12, align 4, !tbaa !9
  %106 = sub i32 %105, %104
  store i32 %106, ptr %12, align 4, !tbaa !9
  %107 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %107, ptr %8, align 4, !tbaa !9
  %108 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %108, ptr %12, align 4, !tbaa !9
  %109 = load ptr, ptr %5, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.w2c_hermes, ptr %109, i32 0, i32 6
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = zext i32 %111 to i64
  %113 = add i64 %112, 32
  %114 = call i32 @i32_load(ptr noundef %110, i64 noundef %113)
  store i32 %114, ptr %12, align 4, !tbaa !9
  %115 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %115, ptr %9, align 4, !tbaa !9
  %116 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %116, ptr %13, align 4, !tbaa !9
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.w2c_hermes, ptr %117, i32 0, i32 6
  %119 = load i32, ptr %13, align 4, !tbaa !9
  %120 = zext i32 %119 to i64
  %121 = add i64 %120, 28
  %122 = call i32 @i32_load(ptr noundef %118, i64 noundef %121)
  store i32 %122, ptr %13, align 4, !tbaa !9
  %123 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %123, ptr %11, align 4, !tbaa !9
  %124 = load i32, ptr %13, align 4, !tbaa !9
  %125 = load i32, ptr %12, align 4, !tbaa !9
  %126 = add i32 %125, %124
  store i32 %126, ptr %12, align 4, !tbaa !9
  %127 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %127, ptr %13, align 4, !tbaa !9
  %128 = load i32, ptr %12, align 4, !tbaa !9
  %129 = load i32, ptr %13, align 4, !tbaa !9
  %130 = icmp eq i32 %128, %129
  %131 = zext i1 %130 to i32
  store i32 %131, ptr %12, align 4, !tbaa !9
  %132 = load i32, ptr %12, align 4, !tbaa !9
  %133 = icmp ne i32 %132, 0
  br i1 %133, label %134, label %152

134:                                              ; preds = %75
  %135 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %135, ptr %12, align 4, !tbaa !9
  store i32 1, ptr %13, align 4, !tbaa !9
  %136 = load ptr, ptr %5, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.w2c_hermes, ptr %136, i32 0, i32 6
  %138 = load i32, ptr %12, align 4, !tbaa !9
  %139 = zext i32 %138 to i64
  %140 = add i64 %139, 40
  %141 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store8(ptr noundef %137, i64 noundef %140, i32 noundef %141)
  %142 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %142, ptr %12, align 4, !tbaa !9
  %143 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %143, ptr %13, align 4, !tbaa !9
  %144 = load ptr, ptr %5, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.w2c_hermes, ptr %144, i32 0, i32 6
  %146 = load i32, ptr %12, align 4, !tbaa !9
  %147 = zext i32 %146 to i64
  %148 = add i64 %147, 36
  %149 = load i32, ptr %13, align 4, !tbaa !9
  call void @i32_store(ptr noundef %145, i64 noundef %148, i32 noundef %149)
  %150 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %150, ptr %12, align 4, !tbaa !9
  %151 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %151, ptr %10, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %134, %75
  %153 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %153, ptr %12, align 4, !tbaa !9
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = icmp ne i32 %154, 0
  br i1 %155, label %156, label %157

156:                                              ; preds = %152
  br label %49

157:                                              ; preds = %152
  br label %158

158:                                              ; preds = %157, %28
  br label %174

159:                                              ; preds = %4
  %160 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %160, ptr %12, 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 %12, align 4, !tbaa !9
  %164 = zext i32 %163 to i64
  %165 = add i64 %164, 20
  %166 = call i32 @i32_load(ptr noundef %162, i64 noundef %165)
  store i32 %166, ptr %12, align 4, !tbaa !9
  %167 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %167, ptr %13, align 4, !tbaa !9
  %168 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %168, ptr %14, align 4, !tbaa !9
  %169 = load ptr, ptr %5, align 8, !tbaa !5
  %170 = load i32, ptr %12, align 4, !tbaa !9
  %171 = load i32, ptr %13, align 4, !tbaa !9
  %172 = load i32, ptr %14, align 4, !tbaa !9
  %173 = call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %169, i32 noundef %170, i32 noundef %171, i32 noundef %172)
  store i32 %173, ptr %12, align 4, !tbaa !9
  br label %174

174:                                              ; preds = %159, %158
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { 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 = { 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}


; 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: inlinehint nounwind uwtable
declare hidden i32 @i32_load(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

declare i32 @w2c_hermes_0x5F_memcpy(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local void @w2c_hermes_llvh0x3A0x3Acircular_raw_ostream0x3A0x3Awrite_impl0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 40
  %6 = zext i32 %1 to i64
  %7 = add nuw nsw i64 %6, 28
  %8 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %30, label %9

9:                                                ; preds = %4
  %.not96 = icmp eq i32 %3, 0
  br i1 %.not96, label %.loopexit, label %10

10:                                               ; preds = %9
  %11 = add nuw nsw i64 %6, 32
  %12 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %11)
  %13 = add nuw nsw i64 %6, 36
  %14 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %13)
  %15 = add nuw nsw i64 %6, 40
  br label %16

16:                                               ; preds = %29, %10
  %.091 = phi i32 [ %8, %10 ], [ %25, %29 ]
  %.090 = phi i32 [ %14, %10 ], [ %.1, %29 ]
  %.089 = phi i32 [ %12, %10 ], [ %24, %29 ]
  %.0 = phi i32 [ %3, %10 ], [ %23, %29 ]
  %17 = sub i32 %.091, %.090
  %18 = add i32 %17, %.089
  %19 = tail call i32 @llvm.umin.i32(i32 %.0, i32 %18)
  %20 = tail call i32 @w2c_hermes_0x5F_memcpy(ptr noundef %0, i32 noundef %.090, i32 noundef %2, i32 noundef %19) #4
  %21 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %13)
  %22 = add i32 %21, %19
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %13, i32 noundef %22)
  %23 = sub i32 %.0, %19
  %24 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %11)
  %25 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %7)
  %26 = add i32 %25, %24
  %27 = icmp eq i32 %26, %22
  br i1 %27, label %28, label %29

28:                                               ; preds = %16
  tail call void @i32_store8(ptr noundef nonnull %5, i64 noundef %15, i32 noundef 1)
  tail call void @i32_store(ptr noundef nonnull %5, i64 noundef %13, i32 noundef %24)
  br label %29

29:                                               ; preds = %28, %16
  %.1 = phi i32 [ %24, %28 ], [ %22, %16 ]
  %.not97 = icmp eq i32 %23, 0
  br i1 %.not97, label %.loopexit, label %16

30:                                               ; preds = %4
  %31 = add nuw nsw i64 %6, 20
  %32 = tail call i32 @i32_load(ptr noundef nonnull %5, i64 noundef %31)
  %33 = tail call i32 @w2c_hermes_llvh0x3A0x3Araw_ostream0x3A0x3Awrite0x28char0x20const0x2A0x2C0x20unsigned0x20long0x29(ptr noundef %0, i32 noundef %32, i32 noundef %2, i32 noundef %3)
  br label %.loopexit

.loopexit:                                        ; preds = %29, %9, %30
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #3

attributes #0 = { 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 #1 = { "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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass