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

; 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_elementinterface_table_head = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%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.table_head = type { i32, i32, i32, i32, i16, i16, i64, i64, i16, i16, i16, i16, i16, i16, i16, i16, i16 }

@table_iHead = external dso_local constant %struct.__caryll_elementinterface_table_head, align 8
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@headFlagsLabels = external hidden global [16 x ptr], align 16
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@macStyleLabels = external hidden global [8 x ptr], align 16
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 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

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

declare ptr @sdsempty() #1

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

; Function Attrs: nounwind uwtable
define dso_local ptr @otfcc_parseHead(ptr noundef %0, ptr noundef %1) #2 {
  %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
  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) #4
  %8 = load ptr, ptr getelementptr inbounds (%struct.__caryll_elementinterface_table_head, ptr @table_iHead, i32 0, i32 6), align 8, !tbaa !9
  %9 = call ptr (...) %8()
  store ptr %9, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr null, ptr %6, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = call ptr @json_obj_get_type(ptr noundef %10, ptr noundef @.str.1, i32 noundef 1)
  store ptr %11, ptr %6, align 8, !tbaa !5
  %12 = icmp ne ptr %11, null
  br i1 %12, label %13, label %116

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

24:                                               ; preds = %106, %13
  %25 = load i8, ptr %7, align 1, !tbaa !16, !range !17, !noundef !18
  %26 = trunc i8 %25 to i1
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #4
  br label %115

28:                                               ; preds = %24
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = call double @json_obj_getnum_fallback(ptr noundef %29, ptr noundef @.str.2, double noundef 0.000000e+00)
  %31 = call i32 @otfcc_to_fixed(double noundef %30)
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.table_head, ptr %32, i32 0, i32 0
  store i32 %31, ptr %33, align 8, !tbaa !19
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = call double @json_obj_getnum_fallback(ptr noundef %34, ptr noundef @.str.3, double noundef 0.000000e+00)
  %36 = call i32 @otfcc_to_fixed(double noundef %35)
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.table_head, ptr %37, i32 0, i32 1
  store i32 %36, ptr %38, align 4, !tbaa !24
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = call ptr @json_obj_get(ptr noundef %39, ptr noundef @.str.4)
  %41 = call i32 @otfcc_parse_flags(ptr noundef %40, ptr noundef @headFlagsLabels)
  %42 = trunc i32 %41 to i16
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.table_head, ptr %43, i32 0, i32 4
  store i16 %42, ptr %44, align 8, !tbaa !25
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = call double @json_obj_getnum_fallback(ptr noundef %45, ptr noundef @.str.5, double noundef 0.000000e+00)
  %47 = fptoui double %46 to i16
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.table_head, ptr %48, i32 0, i32 5
  store i16 %47, ptr %49, align 2, !tbaa !26
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = call double @json_obj_getnum_fallback(ptr noundef %50, ptr noundef @.str.6, double noundef 0.000000e+00)
  %52 = fptosi double %51 to i64
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.table_head, ptr %53, i32 0, i32 6
  store i64 %52, ptr %54, align 8, !tbaa !27
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = call double @json_obj_getnum_fallback(ptr noundef %55, ptr noundef @.str.7, double noundef 0.000000e+00)
  %57 = fptosi double %56 to i64
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.table_head, ptr %58, i32 0, i32 7
  store i64 %57, ptr %59, align 8, !tbaa !28
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = call double @json_obj_getnum_fallback(ptr noundef %60, ptr noundef @.str.8, double noundef 0.000000e+00)
  %62 = fptosi double %61 to i16
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.table_head, ptr %63, i32 0, i32 8
  store i16 %62, ptr %64, align 8, !tbaa !29
  %65 = load ptr, ptr %6, align 8, !tbaa !5
  %66 = call double @json_obj_getnum_fallback(ptr noundef %65, ptr noundef @.str.9, double noundef 0.000000e+00)
  %67 = fptosi double %66 to i16
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.table_head, ptr %68, i32 0, i32 10
  store i16 %67, ptr %69, align 4, !tbaa !30
  %70 = load ptr, ptr %6, align 8, !tbaa !5
  %71 = call double @json_obj_getnum_fallback(ptr noundef %70, ptr noundef @.str.10, double noundef 0.000000e+00)
  %72 = fptosi double %71 to i16
  %73 = load ptr, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.table_head, ptr %73, i32 0, i32 9
  store i16 %72, ptr %74, align 2, !tbaa !31
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = call double @json_obj_getnum_fallback(ptr noundef %75, ptr noundef @.str.11, double noundef 0.000000e+00)
  %77 = fptosi double %76 to i16
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct.table_head, ptr %78, i32 0, i32 11
  store i16 %77, ptr %79, align 2, !tbaa !32
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = call ptr @json_obj_get(ptr noundef %80, ptr noundef @.str.12)
  %82 = call i32 @otfcc_parse_flags(ptr noundef %81, ptr noundef @macStyleLabels)
  %83 = trunc i32 %82 to i16
  %84 = load ptr, ptr %5, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.table_head, ptr %84, i32 0, i32 12
  store i16 %83, ptr %85, align 8, !tbaa !33
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = call double @json_obj_getnum_fallback(ptr noundef %86, ptr noundef @.str.13, double noundef 0.000000e+00)
  %88 = fptoui double %87 to i16
  %89 = load ptr, ptr %5, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.table_head, ptr %89, i32 0, i32 13
  store i16 %88, ptr %90, align 2, !tbaa !34
  %91 = load ptr, ptr %6, align 8, !tbaa !5
  %92 = call double @json_obj_getnum_fallback(ptr noundef %91, ptr noundef @.str.14, double noundef 0.000000e+00)
  %93 = fptosi double %92 to i16
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.table_head, ptr %94, i32 0, i32 14
  store i16 %93, ptr %95, align 4, !tbaa !35
  %96 = load ptr, ptr %6, align 8, !tbaa !5
  %97 = call double @json_obj_getnum_fallback(ptr noundef %96, ptr noundef @.str.15, double noundef 0.000000e+00)
  %98 = fptosi double %97 to i16
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.table_head, ptr %99, i32 0, i32 15
  store i16 %98, ptr %100, align 2, !tbaa !36
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = call double @json_obj_getnum_fallback(ptr noundef %101, ptr noundef @.str.16, double noundef 0.000000e+00)
  %103 = fptosi double %102 to i16
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.table_head, ptr %104, i32 0, i32 16
  store i16 %103, ptr %105, align 8, !tbaa !37
  br label %106

106:                                              ; preds = %28
  store i8 0, ptr %7, align 1, !tbaa !16
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.otfcc_Options, ptr %107, i32 0, i32 24
  %109 = load ptr, ptr %108, align 8, !tbaa !11
  %110 = getelementptr inbounds %struct.otfcc_ILogger, ptr %109, i32 0, i32 8
  %111 = load ptr, ptr %110, align 8, !tbaa !38
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.otfcc_Options, ptr %112, i32 0, i32 24
  %114 = load ptr, ptr %113, align 8, !tbaa !11
  call void %111(ptr noundef %114)
  br label %24, !llvm.loop !39

115:                                              ; preds = %27
  br label %116

116:                                              ; preds = %115, %2
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret ptr %117
}

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

declare i32 @otfcc_to_fixed(double noundef) #1

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 = { 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 48}
!10 = !{!"__caryll_elementinterface_table_head", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56}
!11 = !{!12, !6, i64 32}
!12 = !{!"", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !13, i64 7, !13, i64 8, !13, i64 9, !13, i64 10, !13, i64 11, !13, i64 12, !13, i64 13, !13, i64 14, !13, i64 15, !13, i64 16, !13, i64 17, !13, i64 18, !13, i64 19, !13, i64 20, !13, i64 21, !13, i64 22, !6, i64 24, !6, i64 32}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!15, !6, i64 32}
!15 = !{!"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}
!16 = !{!13, !13, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !21, i64 0}
!20 = !{!"", !21, i64 0, !21, i64 4, !21, i64 8, !21, i64 12, !22, i64 16, !22, i64 18, !23, i64 24, !23, i64 32, !22, i64 40, !22, i64 42, !22, i64 44, !22, i64 46, !22, i64 48, !22, i64 50, !22, i64 52, !22, i64 54, !22, i64 56}
!21 = !{!"int", !7, i64 0}
!22 = !{!"short", !7, i64 0}
!23 = !{!"long", !7, i64 0}
!24 = !{!20, !21, i64 4}
!25 = !{!20, !22, i64 16}
!26 = !{!20, !22, i64 18}
!27 = !{!20, !23, i64 24}
!28 = !{!20, !23, i64 32}
!29 = !{!20, !22, i64 40}
!30 = !{!20, !22, i64 44}
!31 = !{!20, !22, i64 42}
!32 = !{!20, !22, i64 46}
!33 = !{!20, !22, i64 48}
!34 = !{!20, !22, i64 50}
!35 = !{!20, !22, i64 52}
!36 = !{!20, !22, i64 54}
!37 = !{!20, !22, i64 56}
!38 = !{!15, !6, i64 64}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}


; 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_elementinterface_table_head = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@table_iHead = external dso_local local_unnamed_addr constant %struct.__caryll_elementinterface_table_head, align 8
@.str.1 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@headFlagsLabels = external hidden global [16 x ptr], align 16
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [9 x i8], align 1
@macStyleLabels = external hidden global [8 x ptr], align 16
@.str.13 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 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_parseHead(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #1 {
  %3 = load ptr, ptr getelementptr inbounds (i8, ptr @table_iHead, i64 48), align 8, !tbaa !5
  %4 = tail call ptr (...) %3() #3
  %5 = tail call ptr @json_obj_get_type(ptr noundef %0, ptr noundef nonnull @.str.1, i32 noundef 1)
  %.not = icmp eq ptr %5, null
  br i1 %.not, label %61, label %.critedge

.critedge:                                        ; preds = %2
  %6 = getelementptr inbounds i8, ptr %1, i64 32
  %7 = load ptr, ptr %6, align 8, !tbaa !10
  %8 = getelementptr inbounds i8, ptr %7, i64 32
  %9 = load ptr, ptr %8, align 8, !tbaa !13
  %10 = tail call ptr @sdsempty() #3
  %11 = tail call ptr (ptr, ptr, ...) @sdscatprintf(ptr noundef %10, ptr noundef nonnull @.str.1) #3
  tail call void %9(ptr noundef %7, ptr noundef %11) #3
  %12 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.2, double noundef 0.000000e+00)
  %13 = tail call i32 @otfcc_to_fixed(double noundef %12) #3
  store i32 %13, ptr %4, align 8, !tbaa !15
  %14 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.3, double noundef 0.000000e+00)
  %15 = tail call i32 @otfcc_to_fixed(double noundef %14) #3
  %16 = getelementptr inbounds i8, ptr %4, i64 4
  store i32 %15, ptr %16, align 4, !tbaa !20
  %17 = tail call ptr @json_obj_get(ptr noundef nonnull %5, ptr noundef nonnull @.str.4)
  %18 = tail call i32 @otfcc_parse_flags(ptr noundef %17, ptr noundef nonnull @headFlagsLabels)
  %19 = trunc i32 %18 to i16
  %20 = getelementptr inbounds i8, ptr %4, i64 16
  store i16 %19, ptr %20, align 8, !tbaa !21
  %21 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.5, double noundef 0.000000e+00)
  %22 = fptoui double %21 to i16
  %23 = getelementptr inbounds i8, ptr %4, i64 18
  store i16 %22, ptr %23, align 2, !tbaa !22
  %24 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.6, double noundef 0.000000e+00)
  %25 = fptosi double %24 to i64
  %26 = getelementptr inbounds i8, ptr %4, i64 24
  store i64 %25, ptr %26, align 8, !tbaa !23
  %27 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.7, double noundef 0.000000e+00)
  %28 = fptosi double %27 to i64
  %29 = getelementptr inbounds i8, ptr %4, i64 32
  store i64 %28, ptr %29, align 8, !tbaa !24
  %30 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.8, double noundef 0.000000e+00)
  %31 = fptosi double %30 to i16
  %32 = getelementptr inbounds i8, ptr %4, i64 40
  store i16 %31, ptr %32, align 8, !tbaa !25
  %33 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.9, double noundef 0.000000e+00)
  %34 = fptosi double %33 to i16
  %35 = getelementptr inbounds i8, ptr %4, i64 44
  store i16 %34, ptr %35, align 4, !tbaa !26
  %36 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.10, double noundef 0.000000e+00)
  %37 = fptosi double %36 to i16
  %38 = getelementptr inbounds i8, ptr %4, i64 42
  store i16 %37, ptr %38, align 2, !tbaa !27
  %39 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.11, double noundef 0.000000e+00)
  %40 = fptosi double %39 to i16
  %41 = getelementptr inbounds i8, ptr %4, i64 46
  store i16 %40, ptr %41, align 2, !tbaa !28
  %42 = tail call ptr @json_obj_get(ptr noundef nonnull %5, ptr noundef nonnull @.str.12)
  %43 = tail call i32 @otfcc_parse_flags(ptr noundef %42, ptr noundef nonnull @macStyleLabels)
  %44 = trunc i32 %43 to i16
  %45 = getelementptr inbounds i8, ptr %4, i64 48
  store i16 %44, ptr %45, align 8, !tbaa !29
  %46 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.13, double noundef 0.000000e+00)
  %47 = fptoui double %46 to i16
  %48 = getelementptr inbounds i8, ptr %4, i64 50
  store i16 %47, ptr %48, align 2, !tbaa !30
  %49 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.14, double noundef 0.000000e+00)
  %50 = fptosi double %49 to i16
  %51 = getelementptr inbounds i8, ptr %4, i64 52
  store i16 %50, ptr %51, align 4, !tbaa !31
  %52 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.15, double noundef 0.000000e+00)
  %53 = fptosi double %52 to i16
  %54 = getelementptr inbounds i8, ptr %4, i64 54
  store i16 %53, ptr %54, align 2, !tbaa !32
  %55 = tail call double @json_obj_getnum_fallback(ptr noundef nonnull %5, ptr noundef nonnull @.str.16, double noundef 0.000000e+00)
  %56 = fptosi double %55 to i16
  %57 = getelementptr inbounds i8, ptr %4, i64 56
  store i16 %56, ptr %57, align 8, !tbaa !33
  %58 = load ptr, ptr %6, align 8, !tbaa !10
  %59 = getelementptr inbounds i8, ptr %58, i64 64
  %60 = load ptr, ptr %59, align 8, !tbaa !34
  tail call void %60(ptr noundef %58) #3
  br label %61

61:                                               ; preds = %.critedge, %2
  ret ptr %4
}

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

declare i32 @otfcc_to_fixed(double noundef) local_unnamed_addr #0

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @json_obj_get(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, !7, i64 48}
!6 = !{!"__caryll_elementinterface_table_head", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 32}
!11 = !{!"", !12, i64 0, !12, i64 1, !12, i64 2, !12, i64 3, !12, i64 4, !12, i64 5, !12, i64 6, !12, i64 7, !12, i64 8, !12, i64 9, !12, i64 10, !12, i64 11, !12, i64 12, !12, i64 13, !12, i64 14, !12, i64 15, !12, i64 16, !12, i64 17, !12, i64 18, !12, i64 19, !12, i64 20, !12, i64 21, !12, i64 22, !7, i64 24, !7, i64 32}
!12 = !{!"_Bool", !8, i64 0}
!13 = !{!14, !7, i64 32}
!14 = !{!"otfcc_ILogger", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88}
!15 = !{!16, !17, i64 0}
!16 = !{!"", !17, i64 0, !17, i64 4, !17, i64 8, !17, i64 12, !18, i64 16, !18, i64 18, !19, i64 24, !19, i64 32, !18, i64 40, !18, i64 42, !18, i64 44, !18, i64 46, !18, i64 48, !18, i64 50, !18, i64 52, !18, i64 54, !18, i64 56}
!17 = !{!"int", !8, i64 0}
!18 = !{!"short", !8, i64 0}
!19 = !{!"long", !8, i64 0}
!20 = !{!16, !17, i64 4}
!21 = !{!16, !18, i64 16}
!22 = !{!16, !18, i64 18}
!23 = !{!16, !19, i64 24}
!24 = !{!16, !19, i64 32}
!25 = !{!16, !18, i64 40}
!26 = !{!16, !18, i64 44}
!27 = !{!16, !18, i64 42}
!28 = !{!16, !18, i64 46}
!29 = !{!16, !18, i64 48}
!30 = !{!16, !18, i64 50}
!31 = !{!16, !18, i64 52}
!32 = !{!16, !18, i64 54}
!33 = !{!16, !18, i64 56}
!34 = !{!14, !7, i64 64}


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