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

; 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 @i64_store(ptr noundef, i64 noundef, i64 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 i32 @i32_load8_u(ptr noundef, i64 noundef) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AInterpreter0x3A0x3AimplCallBuiltin0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) #2 {
  %6 = alloca ptr, align 8
  %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
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store i32 %2, ptr %8, align 4, !tbaa !9
  store i32 %3, ptr %9, align 4, !tbaa !9
  store i32 %4, 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
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  store i32 0, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  store i32 0, ptr %14, align 4, !tbaa !9
  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
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %20 = load ptr, ptr %6, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.w2c_hermes, ptr %20, i32 0, i32 3
  %22 = load i32, ptr %21, align 8, !tbaa !11
  store i32 %22, ptr %15, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %23 = load i32, ptr %16, align 4, !tbaa !9
  %24 = load i32, ptr %15, align 4, !tbaa !9
  %25 = sub i32 %24, %23
  store i32 %25, ptr %15, align 4, !tbaa !9
  %26 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %26, ptr %12, align 4, !tbaa !9
  %27 = load i32, ptr %15, align 4, !tbaa !9
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.w2c_hermes, ptr %28, i32 0, i32 3
  store i32 %27, ptr %29, align 8, !tbaa !11
  %30 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %30, ptr %15, align 4, !tbaa !9
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.w2c_hermes, ptr %31, i32 0, i32 6
  %33 = load i32, ptr %15, align 4, !tbaa !9
  %34 = zext i32 %33 to i64
  %35 = add i64 %34, 5712
  %36 = call i32 @i32_load(ptr noundef %32, i64 noundef %35)
  store i32 %36, ptr %15, align 4, !tbaa !9
  %37 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %37, ptr %16, align 4, !tbaa !9
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.w2c_hermes, ptr %38, i32 0, i32 6
  %40 = load i32, ptr %16, align 4, !tbaa !9
  %41 = zext i32 %40 to i64
  %42 = add i64 %41, 5808
  %43 = call i32 @i32_load(ptr noundef %39, i64 noundef %42)
  store i32 %43, ptr %16, align 4, !tbaa !9
  %44 = load i32, ptr %16, align 4, !tbaa !9
  store i32 %44, ptr %13, align 4, !tbaa !9
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.w2c_hermes, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %16, align 4, !tbaa !9
  %48 = zext i32 %47 to i64
  %49 = add i64 %48, 2
  %50 = call i32 @i32_load8_u(ptr noundef %46, i64 noundef %49)
  store i32 %50, ptr %16, align 4, !tbaa !9
  store i32 2, ptr %17, align 4, !tbaa !9
  %51 = load i32, ptr %17, align 4, !tbaa !9
  %52 = and i32 %51, 31
  %53 = load i32, ptr %16, align 4, !tbaa !9
  %54 = shl i32 %53, %52
  store i32 %54, ptr %16, align 4, !tbaa !9
  %55 = load i32, ptr %16, align 4, !tbaa !9
  %56 = load i32, ptr %15, align 4, !tbaa !9
  %57 = add i32 %56, %55
  store i32 %57, ptr %15, align 4, !tbaa !9
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.w2c_hermes, ptr %58, i32 0, i32 6
  %60 = load i32, ptr %15, align 4, !tbaa !9
  %61 = zext i32 %60 to i64
  %62 = call i32 @i32_load(ptr noundef %59, i64 noundef %61)
  store i32 %62, ptr %15, align 4, !tbaa !9
  %63 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %63, ptr %14, align 4, !tbaa !9
  %64 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %64, ptr %15, align 4, !tbaa !9
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.w2c_hermes, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %15, align 4, !tbaa !9
  %68 = zext i32 %67 to i64
  %69 = add i64 %68, 5588
  %70 = call i32 @i32_load(ptr noundef %66, i64 noundef %69)
  store i32 %70, ptr %15, align 4, !tbaa !9
  %71 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %71, ptr %11, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %72 = load i32, ptr %16, align 4, !tbaa !9
  %73 = load i32, ptr %15, align 4, !tbaa !9
  %74 = sub i32 %73, %72
  store i32 %74, ptr %15, align 4, !tbaa !9
  %75 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %75, ptr %16, align 4, !tbaa !9
  %76 = load i32, ptr %16, align 4, !tbaa !9
  %77 = zext i32 %76 to i64
  store i64 %77, ptr %18, align 8, !tbaa !17
  %78 = load ptr, ptr %6, 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 = load i64, ptr %18, align 8, !tbaa !17
  call void @i64_store(ptr noundef %79, i64 noundef %81, i64 noundef %82)
  %83 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %83, ptr %15, align 4, !tbaa !9
  store i32 8, ptr %16, align 4, !tbaa !9
  %84 = load i32, ptr %16, align 4, !tbaa !9
  %85 = load i32, ptr %15, align 4, !tbaa !9
  %86 = sub i32 %85, %84
  store i32 %86, ptr %15, align 4, !tbaa !9
  %87 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %87, ptr %16, align 4, !tbaa !9
  store i32 8, ptr %17, align 4, !tbaa !9
  %88 = load i32, ptr %17, align 4, !tbaa !9
  %89 = load i32, ptr %16, align 4, !tbaa !9
  %90 = sub i32 %89, %88
  store i32 %90, ptr %16, align 4, !tbaa !9
  %91 = load i32, ptr %16, align 4, !tbaa !9
  %92 = zext i32 %91 to i64
  store i64 %92, ptr %18, align 8, !tbaa !17
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.w2c_hermes, ptr %93, i32 0, i32 6
  %95 = load i32, ptr %15, align 4, !tbaa !9
  %96 = zext i32 %95 to i64
  %97 = load i64, ptr %18, align 8, !tbaa !17
  call void @i64_store(ptr noundef %94, i64 noundef %96, i64 noundef %97)
  %98 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %98, ptr %15, align 4, !tbaa !9
  store i32 24, ptr %16, align 4, !tbaa !9
  %99 = load i32, ptr %16, align 4, !tbaa !9
  %100 = load i32, ptr %15, align 4, !tbaa !9
  %101 = sub i32 %100, %99
  store i32 %101, ptr %15, align 4, !tbaa !9
  %102 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %102, ptr %16, align 4, !tbaa !9
  %103 = load i32, ptr %16, align 4, !tbaa !9
  %104 = zext i32 %103 to i64
  store i64 %104, ptr %18, align 8, !tbaa !17
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.w2c_hermes, ptr %105, i32 0, i32 6
  %107 = load i32, ptr %15, align 4, !tbaa !9
  %108 = zext i32 %107 to i64
  %109 = load i64, ptr %18, align 8, !tbaa !17
  call void @i64_store(ptr noundef %106, i64 noundef %108, i64 noundef %109)
  %110 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %110, ptr %15, align 4, !tbaa !9
  store i32 32, ptr %16, align 4, !tbaa !9
  %111 = load i32, ptr %16, align 4, !tbaa !9
  %112 = load i32, ptr %15, align 4, !tbaa !9
  %113 = sub i32 %112, %111
  store i32 %113, ptr %15, align 4, !tbaa !9
  %114 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %114, ptr %16, align 4, !tbaa !9
  store i32 1, ptr %17, align 4, !tbaa !9
  %115 = load i32, ptr %17, align 4, !tbaa !9
  %116 = load i32, ptr %16, align 4, !tbaa !9
  %117 = sub i32 %116, %115
  store i32 %117, ptr %16, align 4, !tbaa !9
  %118 = load i32, ptr %16, align 4, !tbaa !9
  %119 = zext i32 %118 to i64
  store i64 %119, ptr %18, align 8, !tbaa !17
  store i64 -1125899906842624, ptr %19, align 8, !tbaa !17
  %120 = load i64, ptr %19, align 8, !tbaa !17
  %121 = load i64, ptr %18, align 8, !tbaa !17
  %122 = or i64 %121, %120
  store i64 %122, ptr %18, align 8, !tbaa !17
  %123 = load ptr, ptr %6, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.w2c_hermes, ptr %123, i32 0, i32 6
  %125 = load i32, ptr %15, align 4, !tbaa !9
  %126 = zext i32 %125 to i64
  %127 = load i64, ptr %18, align 8, !tbaa !17
  call void @i64_store(ptr noundef %124, i64 noundef %126, i64 noundef %127)
  %128 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %128, ptr %15, align 4, !tbaa !9
  store i32 40, ptr %16, align 4, !tbaa !9
  %129 = load i32, ptr %16, align 4, !tbaa !9
  %130 = load i32, ptr %15, align 4, !tbaa !9
  %131 = sub i32 %130, %129
  store i32 %131, ptr %15, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %18, align 8, !tbaa !17
  %132 = load ptr, ptr %6, align 8, !tbaa !5
  %133 = getelementptr inbounds %struct.w2c_hermes, ptr %132, i32 0, i32 6
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = zext i32 %134 to i64
  %136 = load i64, ptr %18, align 8, !tbaa !17
  call void @i64_store(ptr noundef %133, i64 noundef %135, i64 noundef %136)
  %137 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %137, ptr %15, align 4, !tbaa !9
  store i32 56, ptr %16, align 4, !tbaa !9
  %138 = load i32, ptr %16, align 4, !tbaa !9
  %139 = load i32, ptr %15, align 4, !tbaa !9
  %140 = sub i32 %139, %138
  store i32 %140, ptr %15, align 4, !tbaa !9
  store i64 -1688849860263936, ptr %18, align 8, !tbaa !17
  %141 = load ptr, ptr %6, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.w2c_hermes, ptr %141, i32 0, i32 6
  %143 = load i32, ptr %15, align 4, !tbaa !9
  %144 = zext i32 %143 to i64
  %145 = load i64, ptr %18, align 8, !tbaa !17
  call void @i64_store(ptr noundef %142, i64 noundef %144, i64 noundef %145)
  %146 = load i32, ptr %11, align 4, !tbaa !9
  store i32 %146, ptr %15, align 4, !tbaa !9
  store i32 48, ptr %16, align 4, !tbaa !9
  %147 = load i32, ptr %16, align 4, !tbaa !9
  %148 = load i32, ptr %15, align 4, !tbaa !9
  %149 = sub i32 %148, %147
  store i32 %149, ptr %15, align 4, !tbaa !9
  %150 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %150, ptr %16, align 4, !tbaa !9
  %151 = load i32, ptr %16, align 4, !tbaa !9
  %152 = zext i32 %151 to i64
  store i64 %152, ptr %18, align 8, !tbaa !17
  store i64 -281474976710656, ptr %19, align 8, !tbaa !17
  %153 = load i64, ptr %19, align 8, !tbaa !17
  %154 = load i64, ptr %18, align 8, !tbaa !17
  %155 = or i64 %154, %153
  store i64 %155, ptr %18, align 8, !tbaa !17
  %156 = load ptr, ptr %6, align 8, !tbaa !5
  %157 = getelementptr inbounds %struct.w2c_hermes, ptr %156, i32 0, i32 6
  %158 = load i32, ptr %15, align 4, !tbaa !9
  %159 = zext i32 %158 to i64
  %160 = load i64, ptr %18, align 8, !tbaa !17
  call void @i64_store(ptr noundef %157, i64 noundef %159, i64 noundef %160)
  %161 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %161, ptr %15, align 4, !tbaa !9
  %162 = load i32, ptr %14, align 4, !tbaa !9
  store i32 %162, ptr %16, align 4, !tbaa !9
  %163 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %163, ptr %17, align 4, !tbaa !9
  %164 = load ptr, ptr %6, align 8, !tbaa !5
  %165 = load i32, ptr %15, align 4, !tbaa !9
  %166 = load i32, ptr %16, align 4, !tbaa !9
  %167 = load i32, ptr %17, align 4, !tbaa !9
  call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ANativeFunction0x3A0x3A_nativeCall0x28hermes0x3A0x3Avm0x3A0x3ANativeFunction0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef %164, i32 noundef %165, i32 noundef %166, i32 noundef %167)
  %168 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %168, ptr %15, align 4, !tbaa !9
  %169 = load ptr, ptr %6, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.w2c_hermes, ptr %169, i32 0, i32 6
  %171 = load i32, ptr %15, align 4, !tbaa !9
  %172 = zext i32 %171 to i64
  %173 = call i32 @i32_load(ptr noundef %170, 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
  br i1 %175, label %176, label %204

176:                                              ; preds = %5
  %177 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %177, ptr %15, align 4, !tbaa !9
  %178 = load i32, ptr %13, align 4, !tbaa !9
  store i32 %178, ptr %16, align 4, !tbaa !9
  %179 = load ptr, ptr %6, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.w2c_hermes, ptr %179, i32 0, i32 6
  %181 = load i32, ptr %16, align 4, !tbaa !9
  %182 = zext i32 %181 to i64
  %183 = add i64 %182, 1
  %184 = call i32 @i32_load8_u(ptr noundef %180, i64 noundef %183)
  store i32 %184, ptr %16, align 4, !tbaa !9
  store i32 3, ptr %17, align 4, !tbaa !9
  %185 = load i32, ptr %17, align 4, !tbaa !9
  %186 = and i32 %185, 31
  %187 = load i32, ptr %16, align 4, !tbaa !9
  %188 = shl i32 %187, %186
  store i32 %188, ptr %16, align 4, !tbaa !9
  %189 = load i32, ptr %16, align 4, !tbaa !9
  %190 = load i32, ptr %15, align 4, !tbaa !9
  %191 = add i32 %190, %189
  store i32 %191, ptr %15, align 4, !tbaa !9
  %192 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %192, ptr %16, align 4, !tbaa !9
  %193 = load ptr, ptr %6, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.w2c_hermes, ptr %193, i32 0, i32 6
  %195 = load i32, ptr %16, align 4, !tbaa !9
  %196 = zext i32 %195 to i64
  %197 = add i64 %196, 8
  %198 = call i64 @i64_load(ptr noundef %194, i64 noundef %197)
  store i64 %198, ptr %18, align 8, !tbaa !17
  %199 = load ptr, ptr %6, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.w2c_hermes, ptr %199, i32 0, i32 6
  %201 = load i32, ptr %15, align 4, !tbaa !9
  %202 = zext i32 %201 to i64
  %203 = load i64, ptr %18, align 8, !tbaa !17
  call void @i64_store(ptr noundef %200, i64 noundef %202, i64 noundef %203)
  store i32 1, ptr %15, align 4, !tbaa !9
  br label %205

204:                                              ; preds = %5
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %205

205:                                              ; preds = %204, %176
  %206 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %206, ptr %7, align 4, !tbaa !9
  %207 = load i32, ptr %12, align 4, !tbaa !9
  store i32 %207, ptr %15, align 4, !tbaa !9
  store i32 16, ptr %16, align 4, !tbaa !9
  %208 = load i32, ptr %16, align 4, !tbaa !9
  %209 = load i32, ptr %15, align 4, !tbaa !9
  %210 = add i32 %209, %208
  store i32 %210, ptr %15, align 4, !tbaa !9
  %211 = load i32, ptr %15, align 4, !tbaa !9
  %212 = load ptr, ptr %6, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.w2c_hermes, ptr %212, i32 0, i32 3
  store i32 %211, ptr %213, align 8, !tbaa !11
  %214 = load i32, ptr %7, align 4, !tbaa !9
  store i32 %214, ptr %15, align 4, !tbaa !9
  %215 = load i32, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  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
  ret i32 %215
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ANativeFunction0x3A0x3A_nativeCall0x28hermes0x3A0x3Avm0x3A0x3ANativeFunction0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) #3

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 = { 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 }

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @w2c_hermes_hermes0x3A0x3Avm0x3A0x3AInterpreter0x3A0x3AimplCallBuiltin0x28hermes0x3A0x3Avm0x3A0x3ARuntime0x260x2C0x20hermes0x3A0x3Avm0x3A0x3APinnedHermesValue0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ACodeBlock0x2A0x2C0x20unsigned0x20int0x29(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4) local_unnamed_addr #1 {
  %6 = getelementptr inbounds i8, ptr %0, i64 24
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = add i32 %7, -16
  store i32 %8, ptr %6, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 40
  %10 = zext i32 %1 to i64
  %11 = add nuw nsw i64 %10, 5712
  %12 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %11)
  %13 = add nuw nsw i64 %10, 5808
  %14 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %13)
  %15 = zext i32 %14 to i64
  %16 = add nuw nsw i64 %15, 2
  %17 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %16)
  %18 = shl i32 %17, 2
  %19 = add i32 %18, %12
  %20 = zext i32 %19 to i64
  %21 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %20)
  %22 = add nuw nsw i64 %10, 5588
  %23 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %22)
  %24 = add i32 %23, -16
  %25 = zext i32 %24 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %25, i64 noundef %15)
  %26 = add i32 %23, -8
  %27 = add i32 %2, -8
  %28 = zext i32 %27 to i64
  %29 = zext i32 %26 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %29, i64 noundef %28)
  %30 = add i32 %23, -24
  %31 = zext i32 %3 to i64
  %32 = zext i32 %30 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %32, i64 noundef %31)
  %33 = add i32 %23, -32
  %34 = add i32 %4, -1
  %35 = zext i32 %34 to i64
  %36 = or disjoint i64 %35, -1125899906842624
  %37 = zext i32 %33 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %37, i64 noundef %36)
  %38 = add i32 %23, -40
  %39 = zext i32 %38 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %39, i64 noundef -1688849860263936)
  %40 = add i32 %23, -56
  %41 = zext i32 %40 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %41, i64 noundef -1688849860263936)
  %42 = add i32 %23, -48
  %43 = zext i32 %21 to i64
  %44 = or disjoint i64 %43, -281474976710656
  %45 = zext i32 %42 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %45, i64 noundef %44)
  tail call void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ANativeFunction0x3A0x3A_nativeCall0x28hermes0x3A0x3Avm0x3A0x3ANativeFunction0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef %0, i32 noundef %8, i32 noundef %21, i32 noundef %1) #3
  %46 = zext i32 %8 to i64
  %47 = tail call i32 @i32_load(ptr noundef nonnull %9, i64 noundef %46)
  %.not = icmp eq i32 %47, 0
  br i1 %.not, label %56, label %48

48:                                               ; preds = %5
  %49 = add nuw nsw i64 %15, 1
  %50 = tail call i32 @i32_load8_u(ptr noundef nonnull %9, i64 noundef %49)
  %51 = shl i32 %50, 3
  %52 = add i32 %51, %2
  %53 = add nuw nsw i64 %46, 8
  %54 = tail call i64 @i64_load(ptr noundef nonnull %9, i64 noundef %53)
  %55 = zext i32 %52 to i64
  tail call void @i64_store(ptr noundef nonnull %9, i64 noundef %55, i64 noundef %54)
  br label %56

56:                                               ; preds = %5, %48
  %.0 = phi i32 [ 1, %48 ], [ 0, %5 ]
  store i32 %7, ptr %6, align 8, !tbaa !5
  ret i32 %.0
}

declare void @w2c_hermes_hermes0x3A0x3Avm0x3A0x3ANativeFunction0x3A0x3A_nativeCall0x28hermes0x3A0x3Avm0x3A0x3ANativeFunction0x2A0x2C0x20hermes0x3A0x3Avm0x3A0x3ARuntime0x260x29(ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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 = { 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 }

!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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass