; LLVM IR from caryll/otfcc :: lib/table (gasp)

; 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.__caryll_vectorinterface_gasp_RecordList = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__caryll_elementinterface_table_gasp = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.gasp_Record = type { i16, i8, i8, i8, i8 }
%struct.otfcc_Options = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, ptr, ptr }
%struct.otfcc_ILogger = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct._json_value = type { ptr, i32, %union.anon, %union.anon.2 }
%union.anon = type { %struct.anon }
%struct.anon = type { i32, ptr }
%union.anon.2 = type { ptr }
%struct.anon.1 = type { i32, ptr }
%struct.table_gasp = type { i16, %struct.gasp_RecordList }
%struct.gasp_RecordList = type { i64, i64, ptr }

@gasp_iRecordList = external dso_local constant %struct.__caryll_vectorinterface_gasp_RecordList, align 8
@table_iGasp = external dso_local constant %struct.__caryll_elementinterface_table_gasp, align 8
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

declare ptr @sdscatprintf(ptr noundef, ptr noundef, ...) #2

declare ptr @sdsempty() #2

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_parseGasp(ptr noundef %0, ptr noundef %1) #3 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i16, align 2
  %10 = alloca ptr, align 8
  %11 = alloca %struct.gasp_Record, align 2
  %12 = alloca i48, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = call ptr @json_obj_get_type(ptr noundef %13, ptr noundef @.str.1, i32 noundef 2)
  store ptr %14, ptr %6, align 8, !tbaa !5
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %102

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #5
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.otfcc_Options, ptr %17, i32 0, i32 24
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = getelementptr inbounds %struct.otfcc_ILogger, ptr %19, i32 0, i32 4
  %21 = load ptr, ptr %20, align 8, !tbaa !12
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.otfcc_Options, ptr %22, i32 0, i32 24
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = call ptr @sdsempty()
  %26 = call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %25, ptr noundef @.str.1)
  call void %21(ptr noundef %24, ptr noundef %26)
  store i8 1, ptr %7, align 1, !tbaa !14
  br label %27

27:                                               ; preds = %92, %16
  %28 = load i8, ptr %7, align 1, !tbaa !14, !range !15, !noundef !16
  %29 = trunc i8 %28 to i1
  br i1 %29, label %31, label %30

30:                                               ; preds = %27
  store i32 2, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #5
  br label %101

31:                                               ; preds = %27
  %32 = load ptr, ptr getelementptr inbounds (%struct.__caryll_elementinterface_table_gasp, ptr @table_iGasp, i32 0, i32 6), align 8, !tbaa !17
  %33 = call ptr (...) %32()
  store ptr %33, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 2, ptr %9) #5
  store i16 0, ptr %9, align 2, !tbaa !19
  br label %34

34:                                               ; preds = %88, %31
  %35 = load i16, ptr %9, align 2, !tbaa !19
  %36 = zext i16 %35 to i32
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._json_value, ptr %37, i32 0, i32 2
  %39 = getelementptr inbounds %struct.anon.1, ptr %38, i32 0, i32 0
  %40 = load i32, ptr %39, align 8, !tbaa !21
  %41 = icmp ult i32 %36, %40
  br i1 %41, label %43, label %42

42:                                               ; preds = %34
  store i32 5, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %9) #5
  br label %91

43:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._json_value, ptr %44, i32 0, i32 2
  %46 = getelementptr inbounds %struct.anon.1, ptr %45, i32 0, i32 1
  %47 = load ptr, ptr %46, align 8, !tbaa !21
  %48 = load i16, ptr %9, align 2, !tbaa !19
  %49 = zext i16 %48 to i64
  %50 = getelementptr inbounds ptr, ptr %47, i64 %49
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  store ptr %51, ptr %10, align 8, !tbaa !5
  %52 = load ptr, ptr %10, align 8, !tbaa !5
  %53 = icmp ne ptr %52, null
  br i1 %53, label %54, label %59

54:                                               ; preds = %43
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct._json_value, ptr %55, i32 0, i32 1
  %57 = load i32, ptr %56, align 8, !tbaa !22
  %58 = icmp ne i32 %57, 1
  br i1 %58, label %59, label %60

59:                                               ; preds = %54, %43
  store i32 7, ptr %8, align 4
  br label %85

60:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 6, ptr %11) #5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = call i32 @json_obj_getint_fallback(ptr noundef %61, ptr noundef @.str.2, i32 noundef 65535)
  %63 = trunc i32 %62 to i16
  %64 = getelementptr inbounds %struct.gasp_Record, ptr %11, i32 0, i32 0
  store i16 %63, ptr %64, align 2, !tbaa !25
  %65 = load ptr, ptr %10, align 8, !tbaa !5
  %66 = call zeroext i1 @json_obj_getbool(ptr noundef %65, ptr noundef @.str.3)
  %67 = getelementptr inbounds %struct.gasp_Record, ptr %11, i32 0, i32 1
  %68 = zext i1 %66 to i8
  store i8 %68, ptr %67, align 2, !tbaa !27
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = call zeroext i1 @json_obj_getbool(ptr noundef %69, ptr noundef @.str.4)
  %71 = getelementptr inbounds %struct.gasp_Record, ptr %11, i32 0, i32 2
  %72 = zext i1 %70 to i8
  store i8 %72, ptr %71, align 1, !tbaa !28
  %73 = load ptr, ptr %10, align 8, !tbaa !5
  %74 = call zeroext i1 @json_obj_getbool(ptr noundef %73, ptr noundef @.str.5)
  %75 = getelementptr inbounds %struct.gasp_Record, ptr %11, i32 0, i32 3
  %76 = zext i1 %74 to i8
  store i8 %76, ptr %75, align 2, !tbaa !29
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = call zeroext i1 @json_obj_getbool(ptr noundef %77, ptr noundef @.str.6)
  %79 = getelementptr inbounds %struct.gasp_Record, ptr %11, i32 0, i32 4
  %80 = zext i1 %78 to i8
  store i8 %80, ptr %79, align 1, !tbaa !30
  %81 = load ptr, ptr getelementptr inbounds (%struct.__caryll_vectorinterface_gasp_RecordList, ptr @gasp_iRecordList, i32 0, i32 13), align 8, !tbaa !31
  %82 = load ptr, ptr %5, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.table_gasp, ptr %82, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 2 %11, i64 6, i1 false)
  %84 = load i48, ptr %12, align 8
  call void %81(ptr noundef %83, i48 %84)
  call void @llvm.lifetime.end.p0(i64 6, ptr %11) #5
  store i32 0, ptr %8, align 4
  br label %85

85:                                               ; preds = %60, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %86 = load i32, ptr %8, align 4
  switch i32 %86, label %104 [
    i32 0, label %87
    i32 7, label %88
  ]

87:                                               ; preds = %85
  br label %88

88:                                               ; preds = %87, %85
  %89 = load i16, ptr %9, align 2, !tbaa !19
  %90 = add i16 %89, 1
  store i16 %90, ptr %9, align 2, !tbaa !19
  br label %34, !llvm.loop !33

91:                                               ; preds = %42
  br label %92

92:                                               ; preds = %91
  store i8 0, ptr %7, align 1, !tbaa !14
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.otfcc_Options, ptr %93, i32 0, i32 24
  %95 = load ptr, ptr %94, align 8, !tbaa !9
  %96 = getelementptr inbounds %struct.otfcc_ILogger, ptr %95, i32 0, i32 8
  %97 = load ptr, ptr %96, align 8, !tbaa !35
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.otfcc_Options, ptr %98, i32 0, i32 24
  %100 = load ptr, ptr %99, align 8, !tbaa !9
  call void %97(ptr noundef %100)
  br label %27, !llvm.loop !36

101:                                              ; preds = %30
  br label %102

102:                                              ; preds = %101, %2
  %103 = load ptr, ptr %5, align 8, !tbaa !5
  store i32 1, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret ptr %103

104:                                              ; preds = %85
  unreachable
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @json_obj_get_type(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @json_obj_getint_fallback(ptr noundef, ptr noundef, i32 noundef) #4

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @json_obj_getbool(ptr noundef, ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { 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 #5 = { 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, !6, i64 32}
!10 = !{!"", !11, i64 0, !11, i64 1, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5, !11, i64 6, !11, i64 7, !11, i64 8, !11, i64 9, !11, i64 10, !11, i64 11, !11, i64 12, !11, i64 13, !11, i64 14, !11, i64 15, !11, i64 16, !11, i64 17, !11, i64 18, !11, i64 19, !11, i64 20, !11, i64 21, !11, i64 22, !6, i64 24, !6, i64 32}
!11 = !{!"_Bool", !7, i64 0}
!12 = !{!13, !6, i64 32}
!13 = !{!"otfcc_ILogger", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88}
!14 = !{!11, !11, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !6, i64 48}
!18 = !{!"__caryll_elementinterface_table_gasp", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!19 = !{!20, !20, i64 0}
!20 = !{!"short", !7, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !24, i64 8}
!23 = !{!"_json_value", !6, i64 0, !24, i64 8, !7, i64 16, !7, i64 32}
!24 = !{!"int", !7, i64 0}
!25 = !{!26, !20, i64 0}
!26 = !{!"", !20, i64 0, !11, i64 2, !11, i64 3, !11, i64 4, !11, i64 5}
!27 = !{!26, !11, i64 2}
!28 = !{!26, !11, i64 3}
!29 = !{!26, !11, i64 4}
!30 = !{!26, !11, i64 5}
!31 = !{!32, !6, i64 104}
!32 = !{!"__caryll_vectorinterface_gasp_RecordList", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!13, !6, i64 64}
!36 = distinct !{!36, !34}


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

%struct.__caryll_vectorinterface_gasp_RecordList = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.__caryll_elementinterface_table_gasp = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@gasp_iRecordList = external dso_local local_unnamed_addr constant %struct.__caryll_vectorinterface_gasp_RecordList, align 8
@table_iGasp = external dso_local local_unnamed_addr constant %struct.__caryll_elementinterface_table_gasp, align 8
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [18 x i8], align 1

declare ptr @sdscatprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #0

declare ptr @sdsempty() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_parseGasp(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = tail call ptr @json_obj_get_type(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 2)
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %41, label %4

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %1, i64 32
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 32
  %8 = load ptr, ptr %7, align 8, !tbaa !11
  %9 = tail call ptr @sdsempty() #3
  %10 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %9, ptr noundef nonnull @.str.1) #3
  tail call void %8(ptr noundef %6, ptr noundef %10) #3
  %11 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iGasp, i64 48), align 8, !tbaa !13
  %12 = getelementptr inbounds i8, ptr %3, i64 16
  %13 = getelementptr inbounds i8, ptr %3, i64 24
  %14 = load ptr, ptr getelementptr inbounds (i8, ptr @gasp_iRecordList, i64 104), align 8
  %15 = tail call ptr (...) %11() #3
  %16 = load i32, ptr %12, align 8, !tbaa !15
  %.not27 = icmp eq i32 %16, 0
  br i1 %.not27, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %17 = getelementptr inbounds i8, ptr %15, i64 8
  br label %21

._crit_edge:                                      ; preds = %36, %4
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 64
  %20 = load ptr, ptr %19, align 8, !tbaa !16
  tail call void %20(ptr noundef %18) #3
  br label %41

21:                                               ; preds = %.lr.ph, %36
  %22 = phi i32 [ %16, %.lr.ph ], [ %37, %36 ]
  %.02126 = phi i16 [ 0, %.lr.ph ], [ %38, %36 ]
  %23 = load ptr, ptr %13, align 8, !tbaa !15
  %24 = zext i16 %.02126 to i64
  %25 = getelementptr inbounds ptr, ptr %23, i64 %24
  %26 = load ptr, ptr %25, align 8, !tbaa !17
  %.not24 = icmp eq ptr %26, null
  br i1 %.not24, label %36, label %27

27:                                               ; preds = %21
  %28 = getelementptr inbounds i8, ptr %26, i64 8
  %29 = load i32, ptr %28, align 8, !tbaa !18
  %.not25 = icmp eq i32 %29, 1
  br i1 %.not25, label %30, label %36

30:                                               ; preds = %27
  %31 = tail call i32 @json_obj_getint_fallback(ptr noundef nonnull %26, ptr noundef nonnull @.str.2, i32 noundef 65535)
  %32 = tail call zeroext i1 @json_obj_getbool(ptr noundef nonnull %26, ptr noundef nonnull @.str.3)
  %33 = tail call zeroext i1 @json_obj_getbool(ptr noundef nonnull %26, ptr noundef nonnull @.str.4)
  %34 = tail call zeroext i1 @json_obj_getbool(ptr noundef nonnull %26, ptr noundef nonnull @.str.5)
  %35 = tail call zeroext i1 @json_obj_getbool(ptr noundef nonnull %26, ptr noundef nonnull @.str.6)
  %.sroa.7.0.insert.shift = select i1 %35, i48 1099511627776, i48 0
  %.sroa.6.0.insert.shift = select i1 %34, i48 4294967296, i48 0
  %.sroa.5.0.insert.shift = select i1 %33, i48 16777216, i48 0
  %.sroa.4.0.insert.shift = select i1 %32, i48 65536, i48 0
  %.mask = and i32 %31, 65535
  %.sroa.0.0.insert.ext = zext nneg i32 %.mask to i48
  %.sroa.6.0.insert.insert = or disjoint i48 %.sroa.4.0.insert.shift, %.sroa.0.0.insert.ext
  %.sroa.5.0.insert.insert = or disjoint i48 %.sroa.6.0.insert.insert, %.sroa.5.0.insert.shift
  %.sroa.4.0.insert.insert = or disjoint i48 %.sroa.5.0.insert.insert, %.sroa.6.0.insert.shift
  %.sroa.0.0.insert.insert = or disjoint i48 %.sroa.4.0.insert.insert, %.sroa.7.0.insert.shift
  tail call void %14(ptr noundef nonnull %17, i48 %.sroa.0.0.insert.insert) #3
  %.pre = load i32, ptr %12, align 8, !tbaa !15
  br label %36

36:                                               ; preds = %21, %27, %30
  %37 = phi i32 [ %22, %21 ], [ %22, %27 ], [ %.pre, %30 ]
  %38 = add i16 %.02126, 1
  %39 = zext i16 %38 to i32
  %40 = icmp ugt i32 %37, %39
  br i1 %40, label %21, label %._crit_edge, !llvm.loop !21

41:                                               ; preds = %._crit_edge, %2
  %.1 = phi ptr [ null, %2 ], [ %15, %._crit_edge ]
  ret ptr %.1
}

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden zeroext i1 @json_obj_getbool(ptr noundef, ptr noundef) local_unnamed_addr #2

attributes #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 = { 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 = { 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 32}
!6 = !{!"", !7, i64 0, !7, i64 1, !7, i64 2, !7, i64 3, !7, i64 4, !7, i64 5, !7, i64 6, !7, i64 7, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !7, i64 12, !7, i64 13, !7, i64 14, !7, i64 15, !7, i64 16, !7, i64 17, !7, i64 18, !7, i64 19, !7, i64 20, !7, i64 21, !7, i64 22, !10, i64 24, !10, i64 32}
!7 = !{!"_Bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !10, i64 32}
!12 = !{!"otfcc_ILogger", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88}
!13 = !{!14, !10, i64 48}
!14 = !{!"__caryll_elementinterface_table_gasp", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56}
!15 = !{!8, !8, i64 0}
!16 = !{!12, !10, i64 64}
!17 = !{!10, !10, i64 0}
!18 = !{!19, !20, i64 8}
!19 = !{!"_json_value", !10, i64 0, !20, i64 8, !8, i64 16, !8, i64 32}
!20 = !{!"int", !8, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}


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