; LLVM IR from kala13x/libxutils :: tools (xtop)

; 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.XTopStats = type { i32, %struct.XSyncMutex, %struct.XCPUStats, %struct.XMemInfo, i32, %struct.XArray_, %struct.XTask, i32 }
%struct.XSyncMutex = type { %union.pthread_mutex_t, i8 }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%struct.XCPUStats = type { [3 x i32], i16, %struct.XProcInfo, %struct.XCPUInfo, %struct.XArray_ }
%struct.XProcInfo = type { i32, i32, i64, i64, i64, i64, i64 }
%struct.XCPUInfo = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64 }
%struct.XMemInfo = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%struct.XArray_ = type { ptr, ptr, i32, ptr, i8, i8, i8, i64, i64 }
%struct.XTask = type { ptr, ptr, %struct.XThread, i32, i32, i32 }
%struct.XThread = type { ptr, ptr, i64, i32, i8, i8 }
%struct.xjson_ = type { %struct.xjson_token_, i32, ptr, ptr, ptr, i64, i64 }
%struct.xjson_token_ = type { i32, ptr, i64 }
%struct.XNetIface = type { i64, i64, i64, i64, i16, i64, i64, i64, i64, i64, i32, i8, [256 x i8], [64 x i8], [64 x i8], [128 x [256 x i8]] }

@.str.94 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.105 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [41 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

declare i64 @xstrncpy(ptr noundef, i64 noundef, ptr noundef) #2

declare void @XLog_Display(i32 noundef, i8 noundef zeroext, ptr noundef, ...) #2

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
declare dso_local void @XTOPApp_ParseCoreObj(ptr noundef, ptr noundef) #4

declare i32 @XJSON_GetU32(ptr noundef) #2

declare ptr @XJSON_GetObject(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
define dso_local i32 @XTOPApp_GetJSONStats(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca ptr, align 8
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca ptr, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.XTopStats, ptr %31, i32 0, i32 2
  store ptr %32, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.XTopStats, ptr %33, i32 0, i32 3
  store ptr %34, ptr %7, align 8, !tbaa !5
  %35 = load ptr, ptr %4, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.XTopStats, ptr %35, i32 0, i32 5
  call void @XArray_Destroy(ptr noundef %36)
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.XCPUStats, ptr %37, i32 0, i32 4
  call void @XArray_Destroy(ptr noundef %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.xjson_, ptr %39, i32 0, i32 2
  %41 = load ptr, ptr %40, align 8, !tbaa !9
  %42 = call ptr @XJSON_GetObject(ptr noundef %41, ptr noundef @.str.102)
  store ptr %42, ptr %8, align 8, !tbaa !5
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = icmp eq ptr %43, null
  br i1 %44, label %45, label %46

45:                                               ; preds = %2
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.103)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %428

46:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call ptr @XJSON_GetObject(ptr noundef %47, ptr noundef @.str.104)
  store ptr %48, ptr %10, align 8, !tbaa !5
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = icmp eq ptr %49, null
  br i1 %50, label %51, label %52

51:                                               ; preds = %46
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.105)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %427

52:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = call i64 @XJSON_GetArrayLength(ptr noundef %53)
  store i64 %54, ptr %12, align 8, !tbaa !14
  store i64 0, ptr %11, align 8, !tbaa !14
  br label %55

55:                                               ; preds = %114, %52
  %56 = load i64, ptr %11, align 8, !tbaa !14
  %57 = load i64, ptr %12, align 8, !tbaa !14
  %58 = icmp ult i64 %56, %57
  br i1 %58, label %59, label %117

59:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %60 = load ptr, ptr %10, align 8, !tbaa !5
  %61 = load i64, ptr %11, align 8, !tbaa !14
  %62 = call ptr @XJSON_GetArrayItem(ptr noundef %60, i64 noundef %61)
  store ptr %62, ptr %13, align 8, !tbaa !5
  %63 = load ptr, ptr %13, align 8, !tbaa !5
  %64 = icmp ne ptr %63, null
  br i1 %64, label %65, label %110

65:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  %66 = load ptr, ptr %13, align 8, !tbaa !5
  %67 = call ptr @XJSON_GetObject(ptr noundef %66, ptr noundef @.str.106)
  %68 = call double @XJSON_GetFloat(ptr noundef %67)
  %69 = fptrunc double %68 to float
  store float %69, ptr %14, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = call ptr @XJSON_GetObject(ptr noundef %70, ptr noundef @.str.107)
  %72 = call ptr @XJSON_GetString(ptr noundef %71)
  store ptr %72, ptr %15, align 8, !tbaa !5
  %73 = load ptr, ptr %15, align 8, !tbaa !5
  %74 = icmp eq ptr %73, null
  br i1 %74, label %75, label %76

75:                                               ; preds = %65
  store i32 4, ptr %9, align 4
  br label %107

76:                                               ; preds = %65
  %77 = load ptr, ptr %15, align 8, !tbaa !5
  %78 = call i32 @strncmp(ptr noundef %77, ptr noundef @.str.108, i64 noundef 2) #8
  %79 = icmp ne i32 %78, 0
  br i1 %79, label %86, label %80

80:                                               ; preds = %76
  %81 = load float, ptr %14, align 4, !tbaa !15
  %82 = call i32 @XFloatToU32(float noundef %81)
  %83 = load ptr, ptr %6, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.XCPUStats, ptr %83, i32 0, i32 0
  %85 = getelementptr inbounds [3 x i32], ptr %84, i64 0, i64 0
  store i32 %82, ptr %85, align 8, !tbaa !17
  br label %86

86:                                               ; preds = %80, %76
  %87 = load ptr, ptr %15, align 8, !tbaa !5
  %88 = call i32 @strncmp(ptr noundef %87, ptr noundef @.str.109, i64 noundef 2) #8
  %89 = icmp ne i32 %88, 0
  br i1 %89, label %96, label %90

90:                                               ; preds = %86
  %91 = load float, ptr %14, align 4, !tbaa !15
  %92 = call i32 @XFloatToU32(float noundef %91)
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.XCPUStats, ptr %93, i32 0, i32 0
  %95 = getelementptr inbounds [3 x i32], ptr %94, i64 0, i64 1
  store i32 %92, ptr %95, align 4, !tbaa !17
  br label %96

96:                                               ; preds = %90, %86
  %97 = load ptr, ptr %15, align 8, !tbaa !5
  %98 = call i32 @strncmp(ptr noundef %97, ptr noundef @.str.110, i64 noundef 3) #8
  %99 = icmp ne i32 %98, 0
  br i1 %99, label %106, label %100

100:                                              ; preds = %96
  %101 = load float, ptr %14, align 4, !tbaa !15
  %102 = call i32 @XFloatToU32(float noundef %101)
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.XCPUStats, ptr %103, i32 0, i32 0
  %105 = getelementptr inbounds [3 x i32], ptr %104, i64 0, i64 2
  store i32 %102, ptr %105, align 8, !tbaa !17
  br label %106

106:                                              ; preds = %100, %96
  store i32 0, ptr %9, align 4
  br label %107

107:                                              ; preds = %106, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  %108 = load i32, ptr %9, align 4
  switch i32 %108, label %111 [
    i32 0, label %109
  ]

109:                                              ; preds = %107
  br label %110

110:                                              ; preds = %109, %59
  store i32 0, ptr %9, align 4
  br label %111

111:                                              ; preds = %110, %107
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  %112 = load i32, ptr %9, align 4
  switch i32 %112, label %430 [
    i32 0, label %113
    i32 4, label %114
  ]

113:                                              ; preds = %111
  br label %114

114:                                              ; preds = %113, %111
  %115 = load i64, ptr %11, align 8, !tbaa !14
  %116 = add i64 %115, 1
  store i64 %116, ptr %11, align 8, !tbaa !14
  br label %55, !llvm.loop !18

117:                                              ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %118 = load ptr, ptr %8, align 8, !tbaa !5
  %119 = call ptr @XJSON_GetObject(ptr noundef %118, ptr noundef @.str.111)
  store ptr %119, ptr %16, align 8, !tbaa !5
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = icmp eq ptr %120, null
  br i1 %121, label %122, label %123

122:                                              ; preds = %117
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.112)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %426

123:                                              ; preds = %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %124 = load ptr, ptr %8, align 8, !tbaa !5
  %125 = call ptr @XJSON_GetObject(ptr noundef %124, ptr noundef @.str.113)
  store ptr %125, ptr %17, align 8, !tbaa !5
  %126 = load ptr, ptr %17, align 8, !tbaa !5
  %127 = icmp eq ptr %126, null
  br i1 %127, label %128, label %129

128:                                              ; preds = %123
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.114)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %425

129:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %130 = load ptr, ptr %16, align 8, !tbaa !5
  %131 = call ptr @XJSON_GetObject(ptr noundef %130, ptr noundef @.str.115)
  store ptr %131, ptr %18, align 8, !tbaa !5
  %132 = load ptr, ptr %18, align 8, !tbaa !5
  %133 = icmp eq ptr %132, null
  br i1 %133, label %134, label %135

134:                                              ; preds = %129
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.116)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %424

135:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %136 = load ptr, ptr %16, align 8, !tbaa !5
  %137 = call ptr @XJSON_GetObject(ptr noundef %136, ptr noundef @.str.117)
  store ptr %137, ptr %19, align 8, !tbaa !5
  %138 = load ptr, ptr %19, align 8, !tbaa !5
  %139 = icmp eq ptr %138, null
  br i1 %139, label %140, label %141

140:                                              ; preds = %135
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.118)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %423

141:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %142 = load ptr, ptr %17, align 8, !tbaa !5
  %143 = call ptr @XJSON_GetObject(ptr noundef %142, ptr noundef @.str.94)
  %144 = call double @XJSON_GetFloat(ptr noundef %143)
  %145 = fptrunc double %144 to float
  store float %145, ptr %20, align 4, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  %146 = load ptr, ptr %17, align 8, !tbaa !5
  %147 = call ptr @XJSON_GetObject(ptr noundef %146, ptr noundef @.str.95)
  %148 = call double @XJSON_GetFloat(ptr noundef %147)
  %149 = fptrunc double %148 to float
  store float %149, ptr %21, align 4, !tbaa !15
  %150 = load float, ptr %20, align 4, !tbaa !15
  %151 = call i32 @XFloatToU32(float noundef %150)
  %152 = load ptr, ptr %6, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.XCPUStats, ptr %152, i32 0, i32 2
  %154 = getelementptr inbounds %struct.XProcInfo, ptr %153, i32 0, i32 0
  store i32 %151, ptr %154, align 8, !tbaa !20
  %155 = load float, ptr %21, align 4, !tbaa !15
  %156 = call i32 @XFloatToU32(float noundef %155)
  %157 = load ptr, ptr %6, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.XCPUStats, ptr %157, i32 0, i32 2
  %159 = getelementptr inbounds %struct.XProcInfo, ptr %158, i32 0, i32 1
  store i32 %156, ptr %159, align 4, !tbaa !26
  %160 = load ptr, ptr %19, align 8, !tbaa !5
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.XCPUStats, ptr %161, i32 0, i32 3
  call void @XTOPApp_ParseCoreObj(ptr noundef %160, ptr noundef %162)
  %163 = load ptr, ptr %18, align 8, !tbaa !5
  %164 = call i64 @XJSON_GetArrayLength(ptr noundef %163)
  store i64 %164, ptr %12, align 8, !tbaa !14
  %165 = load ptr, ptr %4, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.XTopStats, ptr %165, i32 0, i32 2
  %167 = getelementptr inbounds %struct.XCPUStats, ptr %166, i32 0, i32 1
  %168 = load i64, ptr %12, align 8, !tbaa !14
  %169 = trunc i64 %168 to i16
  %170 = atomicrmw xchg ptr %167, i16 %169 seq_cst, align 4
  store i64 0, ptr %11, align 8, !tbaa !14
  br label %171

171:                                              ; preds = %207, %141
  %172 = load i64, ptr %11, align 8, !tbaa !14
  %173 = load i64, ptr %12, align 8, !tbaa !14
  %174 = icmp ult i64 %172, %173
  br i1 %174, label %175, label %210

175:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %176 = load ptr, ptr %18, align 8, !tbaa !5
  %177 = load i64, ptr %11, align 8, !tbaa !14
  %178 = call ptr @XJSON_GetArrayItem(ptr noundef %176, i64 noundef %177)
  store ptr %178, ptr %22, align 8, !tbaa !5
  %179 = load ptr, ptr %22, align 8, !tbaa !5
  %180 = icmp ne ptr %179, null
  br i1 %180, label %181, label %203

181:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %182 = call noalias ptr @malloc(i64 noundef 96) #9
  store ptr %182, ptr %23, align 8, !tbaa !5
  %183 = load ptr, ptr %23, align 8, !tbaa !5
  %184 = icmp eq ptr %183, null
  br i1 %184, label %185, label %188

185:                                              ; preds = %181
  %186 = call ptr @__errno_location() #10
  %187 = load i32, ptr %186, align 4, !tbaa !17
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.119, i32 noundef %187)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %200

188:                                              ; preds = %181
  %189 = load ptr, ptr %22, align 8, !tbaa !5
  %190 = load ptr, ptr %23, align 8, !tbaa !5
  call void @XTOPApp_ParseCoreObj(ptr noundef %189, ptr noundef %190)
  %191 = load ptr, ptr %6, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.XCPUStats, ptr %191, i32 0, i32 4
  %193 = load ptr, ptr %23, align 8, !tbaa !5
  %194 = call i32 @XArray_AddData(ptr noundef %192, ptr noundef %193, i64 noundef 0)
  %195 = icmp slt i32 %194, 0
  br i1 %195, label %196, label %199

196:                                              ; preds = %188
  %197 = call ptr @__errno_location() #10
  %198 = load i32, ptr %197, align 4, !tbaa !17
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.120, i32 noundef %198)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %200

199:                                              ; preds = %188
  store i32 0, ptr %9, align 4
  br label %200

200:                                              ; preds = %199, %196, %185
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  %201 = load i32, ptr %9, align 4
  switch i32 %201, label %204 [
    i32 0, label %202
  ]

202:                                              ; preds = %200
  br label %203

203:                                              ; preds = %202, %175
  store i32 0, ptr %9, align 4
  br label %204

204:                                              ; preds = %203, %200
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %205 = load i32, ptr %9, align 4
  switch i32 %205, label %422 [
    i32 0, label %206
  ]

206:                                              ; preds = %204
  br label %207

207:                                              ; preds = %206
  %208 = load i64, ptr %11, align 8, !tbaa !14
  %209 = add i64 %208, 1
  store i64 %209, ptr %11, align 8, !tbaa !14
  br label %171, !llvm.loop !27

210:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  %211 = load ptr, ptr %5, align 8, !tbaa !5
  %212 = getelementptr inbounds %struct.xjson_, ptr %211, i32 0, i32 2
  %213 = load ptr, ptr %212, align 8, !tbaa !9
  %214 = call ptr @XJSON_GetObject(ptr noundef %213, ptr noundef @.str.121)
  store ptr %214, ptr %24, align 8, !tbaa !5
  %215 = load ptr, ptr %24, align 8, !tbaa !5
  %216 = icmp eq ptr %215, null
  br i1 %216, label %217, label %218

217:                                              ; preds = %210
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.122)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %421

218:                                              ; preds = %210
  %219 = load ptr, ptr %24, align 8, !tbaa !5
  %220 = call ptr @XJSON_GetObject(ptr noundef %219, ptr noundef @.str.123)
  %221 = call i64 @XJSON_GetU64(ptr noundef %220)
  %222 = load ptr, ptr %7, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.XMemInfo, ptr %222, i32 0, i32 11
  store i64 %221, ptr %223, align 8, !tbaa !28
  %224 = load ptr, ptr %24, align 8, !tbaa !5
  %225 = call ptr @XJSON_GetObject(ptr noundef %224, ptr noundef @.str.124)
  %226 = call i64 @XJSON_GetU64(ptr noundef %225)
  %227 = load ptr, ptr %7, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.XMemInfo, ptr %227, i32 0, i32 7
  store i64 %226, ptr %228, align 8, !tbaa !30
  %229 = load ptr, ptr %24, align 8, !tbaa !5
  %230 = call ptr @XJSON_GetObject(ptr noundef %229, ptr noundef @.str.125)
  %231 = call i64 @XJSON_GetU64(ptr noundef %230)
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.XMemInfo, ptr %232, i32 0, i32 0
  store i64 %231, ptr %233, align 8, !tbaa !31
  %234 = load ptr, ptr %24, align 8, !tbaa !5
  %235 = call ptr @XJSON_GetObject(ptr noundef %234, ptr noundef @.str.126)
  %236 = call i64 @XJSON_GetU64(ptr noundef %235)
  %237 = load ptr, ptr %7, align 8, !tbaa !5
  %238 = getelementptr inbounds %struct.XMemInfo, ptr %237, i32 0, i32 1
  store i64 %236, ptr %238, align 8, !tbaa !32
  %239 = load ptr, ptr %24, align 8, !tbaa !5
  %240 = call ptr @XJSON_GetObject(ptr noundef %239, ptr noundef @.str.127)
  %241 = call i64 @XJSON_GetU64(ptr noundef %240)
  %242 = load ptr, ptr %7, align 8, !tbaa !5
  %243 = getelementptr inbounds %struct.XMemInfo, ptr %242, i32 0, i32 2
  store i64 %241, ptr %243, align 8, !tbaa !33
  %244 = load ptr, ptr %24, align 8, !tbaa !5
  %245 = call ptr @XJSON_GetObject(ptr noundef %244, ptr noundef @.str.128)
  %246 = call i64 @XJSON_GetU64(ptr noundef %245)
  %247 = load ptr, ptr %7, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.XMemInfo, ptr %247, i32 0, i32 3
  store i64 %246, ptr %248, align 8, !tbaa !34
  %249 = load ptr, ptr %24, align 8, !tbaa !5
  %250 = call ptr @XJSON_GetObject(ptr noundef %249, ptr noundef @.str.129)
  %251 = call i64 @XJSON_GetU64(ptr noundef %250)
  %252 = load ptr, ptr %7, align 8, !tbaa !5
  %253 = getelementptr inbounds %struct.XMemInfo, ptr %252, i32 0, i32 4
  store i64 %251, ptr %253, align 8, !tbaa !35
  %254 = load ptr, ptr %24, align 8, !tbaa !5
  %255 = call ptr @XJSON_GetObject(ptr noundef %254, ptr noundef @.str.130)
  %256 = call i64 @XJSON_GetU64(ptr noundef %255)
  %257 = load ptr, ptr %7, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.XMemInfo, ptr %257, i32 0, i32 5
  store i64 %256, ptr %258, align 8, !tbaa !36
  %259 = load ptr, ptr %24, align 8, !tbaa !5
  %260 = call ptr @XJSON_GetObject(ptr noundef %259, ptr noundef @.str.131)
  %261 = call i64 @XJSON_GetU64(ptr noundef %260)
  %262 = load ptr, ptr %7, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.XMemInfo, ptr %262, i32 0, i32 6
  store i64 %261, ptr %263, align 8, !tbaa !37
  %264 = load ptr, ptr %24, align 8, !tbaa !5
  %265 = call ptr @XJSON_GetObject(ptr noundef %264, ptr noundef @.str.132)
  %266 = call i64 @XJSON_GetU64(ptr noundef %265)
  %267 = load ptr, ptr %7, align 8, !tbaa !5
  %268 = getelementptr inbounds %struct.XMemInfo, ptr %267, i32 0, i32 8
  store i64 %266, ptr %268, align 8, !tbaa !38
  %269 = load ptr, ptr %24, align 8, !tbaa !5
  %270 = call ptr @XJSON_GetObject(ptr noundef %269, ptr noundef @.str.133)
  %271 = call i64 @XJSON_GetU64(ptr noundef %270)
  %272 = load ptr, ptr %7, align 8, !tbaa !5
  %273 = getelementptr inbounds %struct.XMemInfo, ptr %272, i32 0, i32 9
  store i64 %271, ptr %273, align 8, !tbaa !39
  %274 = load ptr, ptr %24, align 8, !tbaa !5
  %275 = call ptr @XJSON_GetObject(ptr noundef %274, ptr noundef @.str.134)
  %276 = call i64 @XJSON_GetU64(ptr noundef %275)
  %277 = load ptr, ptr %7, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.XMemInfo, ptr %277, i32 0, i32 10
  store i64 %276, ptr %278, align 8, !tbaa !40
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %279 = load ptr, ptr %5, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.xjson_, ptr %279, i32 0, i32 2
  %281 = load ptr, ptr %280, align 8, !tbaa !9
  %282 = call ptr @XJSON_GetObject(ptr noundef %281, ptr noundef @.str.135)
  store ptr %282, ptr %25, align 8, !tbaa !5
  %283 = load ptr, ptr %25, align 8, !tbaa !5
  %284 = icmp eq ptr %283, null
  br i1 %284, label %285, label %286

285:                                              ; preds = %218
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.136)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %420

286:                                              ; preds = %218
  %287 = load ptr, ptr %25, align 8, !tbaa !5
  %288 = call i64 @XJSON_GetArrayLength(ptr noundef %287)
  store i64 %288, ptr %12, align 8, !tbaa !14
  store i64 0, ptr %11, align 8, !tbaa !14
  br label %289

289:                                              ; preds = %416, %286
  %290 = load i64, ptr %11, align 8, !tbaa !14
  %291 = load i64, ptr %12, align 8, !tbaa !14
  %292 = icmp ult i64 %290, %291
  br i1 %292, label %293, label %419

293:                                              ; preds = %289
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %294 = load ptr, ptr %25, align 8, !tbaa !5
  %295 = load i64, ptr %11, align 8, !tbaa !14
  %296 = call ptr @XJSON_GetArrayItem(ptr noundef %294, i64 noundef %295)
  store ptr %296, ptr %26, align 8, !tbaa !5
  %297 = load ptr, ptr %26, align 8, !tbaa !5
  %298 = icmp ne ptr %297, null
  br i1 %298, label %299, label %412

299:                                              ; preds = %293
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  %300 = call noalias ptr @malloc(i64 noundef 33240) #9
  store ptr %300, ptr %27, align 8, !tbaa !5
  %301 = load ptr, ptr %27, align 8, !tbaa !5
  %302 = icmp eq ptr %301, null
  br i1 %302, label %303, label %306

303:                                              ; preds = %299
  %304 = call ptr @__errno_location() #10
  %305 = load i32, ptr %304, align 4, !tbaa !17
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.137, i32 noundef %305)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %409

306:                                              ; preds = %299
  %307 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.memset.p0.i64(ptr align 8 %307, i8 0, i64 33240, i1 false)
  %308 = load ptr, ptr %26, align 8, !tbaa !5
  %309 = call ptr @XJSON_GetObject(ptr noundef %308, ptr noundef @.str.138)
  %310 = call i64 @XJSON_GetU64(ptr noundef %309)
  %311 = load ptr, ptr %27, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.XNetIface, ptr %311, i32 0, i32 0
  store i64 %310, ptr %312, align 8, !tbaa !41
  %313 = load ptr, ptr %26, align 8, !tbaa !5
  %314 = call ptr @XJSON_GetObject(ptr noundef %313, ptr noundef @.str.139)
  %315 = call i64 @XJSON_GetU64(ptr noundef %314)
  %316 = load ptr, ptr %27, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.XNetIface, ptr %316, i32 0, i32 1
  store i64 %315, ptr %317, align 8, !tbaa !43
  %318 = load ptr, ptr %26, align 8, !tbaa !5
  %319 = call ptr @XJSON_GetObject(ptr noundef %318, ptr noundef @.str.140)
  %320 = call i64 @XJSON_GetU64(ptr noundef %319)
  %321 = load ptr, ptr %27, align 8, !tbaa !5
  %322 = getelementptr inbounds %struct.XNetIface, ptr %321, i32 0, i32 2
  store i64 %320, ptr %322, align 8, !tbaa !44
  %323 = load ptr, ptr %26, align 8, !tbaa !5
  %324 = call ptr @XJSON_GetObject(ptr noundef %323, ptr noundef @.str.141)
  %325 = call i64 @XJSON_GetU64(ptr noundef %324)
  %326 = load ptr, ptr %27, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.XNetIface, ptr %326, i32 0, i32 3
  store i64 %325, ptr %327, align 8, !tbaa !45
  %328 = load ptr, ptr %26, align 8, !tbaa !5
  %329 = call ptr @XJSON_GetObject(ptr noundef %328, ptr noundef @.str.142)
  %330 = call i64 @XJSON_GetU64(ptr noundef %329)
  %331 = load ptr, ptr %27, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.XNetIface, ptr %331, i32 0, i32 5
  store i64 %330, ptr %332, align 8, !tbaa !46
  %333 = load ptr, ptr %26, align 8, !tbaa !5
  %334 = call ptr @XJSON_GetObject(ptr noundef %333, ptr noundef @.str.143)
  %335 = call i64 @XJSON_GetU64(ptr noundef %334)
  %336 = load ptr, ptr %27, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.XNetIface, ptr %336, i32 0, i32 6
  store i64 %335, ptr %337, align 8, !tbaa !47
  %338 = load ptr, ptr %26, align 8, !tbaa !5
  %339 = call ptr @XJSON_GetObject(ptr noundef %338, ptr noundef @.str.144)
  %340 = call i64 @XJSON_GetU64(ptr noundef %339)
  %341 = load ptr, ptr %27, align 8, !tbaa !5
  %342 = getelementptr inbounds %struct.XNetIface, ptr %341, i32 0, i32 7
  store i64 %340, ptr %342, align 8, !tbaa !48
  %343 = load ptr, ptr %26, align 8, !tbaa !5
  %344 = call ptr @XJSON_GetObject(ptr noundef %343, ptr noundef @.str.145)
  %345 = call i64 @XJSON_GetU64(ptr noundef %344)
  %346 = load ptr, ptr %27, align 8, !tbaa !5
  %347 = getelementptr inbounds %struct.XNetIface, ptr %346, i32 0, i32 8
  store i64 %345, ptr %347, align 8, !tbaa !49
  %348 = load ptr, ptr %26, align 8, !tbaa !5
  %349 = call ptr @XJSON_GetObject(ptr noundef %348, ptr noundef @.str.146)
  %350 = call i64 @XJSON_GetU64(ptr noundef %349)
  %351 = load ptr, ptr %27, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.XNetIface, ptr %351, i32 0, i32 9
  store i64 %350, ptr %352, align 8, !tbaa !50
  %353 = load ptr, ptr %26, align 8, !tbaa !5
  %354 = call ptr @XJSON_GetObject(ptr noundef %353, ptr noundef @.str.147)
  %355 = call zeroext i8 @XJSON_GetBool(ptr noundef %354)
  %356 = load ptr, ptr %27, align 8, !tbaa !5
  %357 = getelementptr inbounds %struct.XNetIface, ptr %356, i32 0, i32 11
  store i8 %355, ptr %357, align 4, !tbaa !51
  %358 = load ptr, ptr %26, align 8, !tbaa !5
  %359 = call ptr @XJSON_GetObject(ptr noundef %358, ptr noundef @.str.148)
  %360 = call i32 @XJSON_GetU32(ptr noundef %359)
  %361 = load ptr, ptr %27, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.XNetIface, ptr %361, i32 0, i32 10
  store i32 %360, ptr %362, align 8, !tbaa !52
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  %363 = load ptr, ptr %26, align 8, !tbaa !5
  %364 = call ptr @XJSON_GetObject(ptr noundef %363, ptr noundef @.str.149)
  %365 = call ptr @XJSON_GetString(ptr noundef %364)
  store ptr %365, ptr %28, align 8, !tbaa !5
  %366 = load ptr, ptr %28, align 8, !tbaa !5
  %367 = icmp ne ptr %366, null
  br i1 %367, label %368, label %374

368:                                              ; preds = %306
  %369 = load ptr, ptr %27, align 8, !tbaa !5
  %370 = getelementptr inbounds %struct.XNetIface, ptr %369, i32 0, i32 12
  %371 = getelementptr inbounds [256 x i8], ptr %370, i64 0, i64 0
  %372 = load ptr, ptr %28, align 8, !tbaa !5
  %373 = call i64 @xstrncpy(ptr noundef %371, i64 noundef 256, ptr noundef %372)
  br label %374

374:                                              ; preds = %368, %306
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #7
  %375 = load ptr, ptr %26, align 8, !tbaa !5
  %376 = call ptr @XJSON_GetObject(ptr noundef %375, ptr noundef @.str.150)
  %377 = call ptr @XJSON_GetString(ptr noundef %376)
  store ptr %377, ptr %29, align 8, !tbaa !5
  %378 = load ptr, ptr %29, align 8, !tbaa !5
  %379 = icmp ne ptr %378, null
  br i1 %379, label %380, label %386

380:                                              ; preds = %374
  %381 = load ptr, ptr %27, align 8, !tbaa !5
  %382 = getelementptr inbounds %struct.XNetIface, ptr %381, i32 0, i32 13
  %383 = getelementptr inbounds [64 x i8], ptr %382, i64 0, i64 0
  %384 = load ptr, ptr %29, align 8, !tbaa !5
  %385 = call i64 @xstrncpy(ptr noundef %383, i64 noundef 64, ptr noundef %384)
  br label %386

386:                                              ; preds = %380, %374
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #7
  %387 = load ptr, ptr %26, align 8, !tbaa !5
  %388 = call ptr @XJSON_GetObject(ptr noundef %387, ptr noundef @.str.151)
  %389 = call ptr @XJSON_GetString(ptr noundef %388)
  store ptr %389, ptr %30, align 8, !tbaa !5
  %390 = load ptr, ptr %30, align 8, !tbaa !5
  %391 = icmp ne ptr %390, null
  br i1 %391, label %392, label %398

392:                                              ; preds = %386
  %393 = load ptr, ptr %27, align 8, !tbaa !5
  %394 = getelementptr inbounds %struct.XNetIface, ptr %393, i32 0, i32 14
  %395 = getelementptr inbounds [64 x i8], ptr %394, i64 0, i64 0
  %396 = load ptr, ptr %30, align 8, !tbaa !5
  %397 = call i64 @xstrncpy(ptr noundef %395, i64 noundef 64, ptr noundef %396)
  br label %398

398:                                              ; preds = %392, %386
  %399 = load ptr, ptr %4, align 8, !tbaa !5
  %400 = getelementptr inbounds %struct.XTopStats, ptr %399, i32 0, i32 5
  %401 = load ptr, ptr %27, align 8, !tbaa !5
  %402 = call i32 @XArray_AddData(ptr noundef %400, ptr noundef %401, i64 noundef 0)
  %403 = icmp slt i32 %402, 0
  br i1 %403, label %404, label %407

404:                                              ; preds = %398
  %405 = call ptr @__errno_location() #10
  %406 = load i32, ptr %405, align 4, !tbaa !17
  call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef @.str.152, i32 noundef %406)
  store i32 -1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %408

407:                                              ; preds = %398
  store i32 0, ptr %9, align 4
  br label %408

408:                                              ; preds = %407, %404
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  br label %409

409:                                              ; preds = %408, %303
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  %410 = load i32, ptr %9, align 4
  switch i32 %410, label %413 [
    i32 0, label %411
  ]

411:                                              ; preds = %409
  br label %412

412:                                              ; preds = %411, %293
  store i32 0, ptr %9, align 4
  br label %413

413:                                              ; preds = %412, %409
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  %414 = load i32, ptr %9, align 4
  switch i32 %414, label %420 [
    i32 0, label %415
  ]

415:                                              ; preds = %413
  br label %416

416:                                              ; preds = %415
  %417 = load i64, ptr %11, align 8, !tbaa !14
  %418 = add i64 %417, 1
  store i64 %418, ptr %11, align 8, !tbaa !14
  br label %289, !llvm.loop !53

419:                                              ; preds = %289
  store i32 1, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %420

420:                                              ; preds = %419, %413, %285
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %421

421:                                              ; preds = %420, %217
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %422

422:                                              ; preds = %421, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %423

423:                                              ; preds = %422, %140
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %424

424:                                              ; preds = %423, %134
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %425

425:                                              ; preds = %424, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %426

426:                                              ; preds = %425, %122
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %427

427:                                              ; preds = %426, %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %428

428:                                              ; preds = %427, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %429 = load i32, ptr %3, align 4
  ret i32 %429

430:                                              ; preds = %111
  unreachable
}

declare void @XArray_Destroy(ptr noundef) #2

declare i64 @XJSON_GetArrayLength(ptr noundef) #2

declare ptr @XJSON_GetArrayItem(ptr noundef, i64 noundef) #2

declare double @XJSON_GetFloat(ptr noundef) #2

declare ptr @XJSON_GetString(ptr noundef) #2

declare i32 @XFloatToU32(float noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #5

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #6

declare i32 @XArray_AddData(ptr noundef, ptr noundef, i64 noundef) #2

declare i64 @XJSON_GetU64(ptr noundef) #2

declare zeroext i8 @XJSON_GetBool(ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 willreturn memory(read) "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 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 allocsize(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 #6 = { nounwind willreturn memory(none) "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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(read) }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind willreturn memory(none) }

!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 = !{!"xjson_", !11, i64 0, !12, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !13, i64 56, !13, i64 64}
!11 = !{!"xjson_token_", !12, i64 0, !6, i64 8, !13, i64 16}
!12 = !{!"int", !7, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !7, i64 0}
!17 = !{!12, !12, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!21, !12, i64 16}
!21 = !{!"XCPUStats", !7, i64 0, !22, i64 12, !23, i64 16, !24, i64 64, !25, i64 160}
!22 = !{!"short", !7, i64 0}
!23 = !{!"XProcInfo", !12, i64 0, !12, i64 4, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40}
!24 = !{!"XCPUInfo", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !12, i64 68, !12, i64 72, !12, i64 76, !12, i64 80, !13, i64 88}
!25 = !{!"XArray_", !6, i64 0, !6, i64 8, !12, i64 16, !6, i64 24, !7, i64 32, !7, i64 33, !7, i64 34, !13, i64 40, !13, i64 48}
!26 = !{!21, !12, i64 20}
!27 = distinct !{!27, !19}
!28 = !{!29, !13, i64 88}
!29 = !{!"XMemInfo", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88}
!30 = !{!29, !13, i64 56}
!31 = !{!29, !13, i64 0}
!32 = !{!29, !13, i64 8}
!33 = !{!29, !13, i64 16}
!34 = !{!29, !13, i64 24}
!35 = !{!29, !13, i64 32}
!36 = !{!29, !13, i64 40}
!37 = !{!29, !13, i64 48}
!38 = !{!29, !13, i64 64}
!39 = !{!29, !13, i64 72}
!40 = !{!29, !13, i64 80}
!41 = !{!42, !13, i64 0}
!42 = !{!"XNetIface", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !22, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !13, i64 64, !13, i64 72, !12, i64 80, !7, i64 84, !7, i64 85, !7, i64 341, !7, i64 405, !7, i64 469}
!43 = !{!42, !13, i64 8}
!44 = !{!42, !13, i64 16}
!45 = !{!42, !13, i64 24}
!46 = !{!42, !13, i64 40}
!47 = !{!42, !13, i64 48}
!48 = !{!42, !13, i64 56}
!49 = !{!42, !13, i64 64}
!50 = !{!42, !13, i64 72}
!51 = !{!42, !7, i64 84}
!52 = !{!42, !12, i64 80}
!53 = distinct !{!53, !19}


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

@.str.94 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.95 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.102 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.103 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.104 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.106 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.107 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.108 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.109 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.110 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.111 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.112 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.113 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.114 = external hidden unnamed_addr constant [53 x i8], align 1
@.str.115 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.116 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.117 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.118 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.119 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.120 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.134 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.135 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.136 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.137 = external hidden unnamed_addr constant [55 x i8], align 1
@.str.138 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.139 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.140 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.141 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.142 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.143 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.144 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.145 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.146 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.147 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.148 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.149 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [41 x i8], align 1

declare i64 @xstrncpy(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #0

declare void @XLog_Display(i32 noundef, i8 noundef zeroext, ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #1

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

declare i32 @XJSON_GetU32(ptr noundef) local_unnamed_addr #0

declare ptr @XJSON_GetObject(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @XTOPApp_GetJSONStats(ptr noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 56
  %4 = getelementptr inbounds i8, ptr %0, i64 272
  %5 = getelementptr inbounds i8, ptr %0, i64 376
  tail call void @XArray_Destroy(ptr noundef nonnull %5) #6
  %6 = getelementptr inbounds i8, ptr %0, i64 216
  tail call void @XArray_Destroy(ptr noundef nonnull %6) #6
  %7 = getelementptr inbounds i8, ptr %1, i64 32
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = tail call ptr @XJSON_GetObject(ptr noundef %8, ptr noundef nonnull @.str.102) #6
  %10 = icmp eq ptr %9, null
  br i1 %10, label %11, label %12

11:                                               ; preds = %2
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.103) #6
  br label %.critedge174

12:                                               ; preds = %2
  %13 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %9, ptr noundef nonnull @.str.104) #6
  %14 = tail call i64 @XJSON_GetArrayLength(ptr noundef %13) #6
  %.not188 = icmp eq i64 %14, 0
  br i1 %.not188, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 60
  %16 = getelementptr inbounds i8, ptr %0, i64 64
  br label %17

17:                                               ; preds = %.lr.ph, %.critedge
  %.0145180 = phi i64 [ 0, %.lr.ph ], [ %37, %.critedge ]
  %18 = tail call ptr @XJSON_GetArrayItem(ptr noundef %13, i64 noundef %.0145180) #6
  %.not168 = icmp eq ptr %18, null
  br i1 %.not168, label %.critedge, label %19

19:                                               ; preds = %17
  %20 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %18, ptr noundef nonnull @.str.106) #6
  %21 = tail call double @XJSON_GetFloat(ptr noundef %20) #6
  %22 = fptrunc double %21 to float
  %23 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %18, ptr noundef nonnull @.str.107) #6
  %24 = tail call ptr @XJSON_GetString(ptr noundef %23) #6
  %.not172 = icmp eq ptr %24, null
  br i1 %.not172, label %.critedge, label %25

25:                                               ; preds = %19
  %26 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.108, i64 noundef 2) #7
  %.not169 = icmp eq i32 %26, 0
  br i1 %.not169, label %27, label %29

27:                                               ; preds = %25
  %28 = tail call i32 @XFloatToU32(float noundef %22) #6
  store i32 %28, ptr %3, align 8, !tbaa !13
  br label %29

29:                                               ; preds = %27, %25
  %30 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.109, i64 noundef 2) #7
  %.not170 = icmp eq i32 %30, 0
  br i1 %.not170, label %31, label %33

31:                                               ; preds = %29
  %32 = tail call i32 @XFloatToU32(float noundef %22) #6
  store i32 %32, ptr %15, align 4, !tbaa !13
  br label %33

33:                                               ; preds = %31, %29
  %34 = tail call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %24, ptr noundef nonnull dereferenceable(1) @.str.110, i64 noundef 3) #7
  %.not171 = icmp eq i32 %34, 0
  br i1 %.not171, label %35, label %.critedge

35:                                               ; preds = %33
  %36 = tail call i32 @XFloatToU32(float noundef %22) #6
  store i32 %36, ptr %16, align 8, !tbaa !13
  br label %.critedge

.critedge:                                        ; preds = %35, %33, %19, %17
  %37 = add nuw i64 %.0145180, 1
  %exitcond.not = icmp eq i64 %37, %14
  br i1 %exitcond.not, label %._crit_edge, label %17, !llvm.loop !14

._crit_edge:                                      ; preds = %.critedge, %12
  %38 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %9, ptr noundef nonnull @.str.111) #6
  %39 = icmp eq ptr %38, null
  br i1 %39, label %40, label %41

40:                                               ; preds = %._crit_edge
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.112) #6
  br label %.critedge174

41:                                               ; preds = %._crit_edge
  %42 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %9, ptr noundef nonnull @.str.113) #6
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %45

44:                                               ; preds = %41
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.114) #6
  br label %.critedge174

45:                                               ; preds = %41
  %46 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %38, ptr noundef nonnull @.str.115) #6
  %47 = icmp eq ptr %46, null
  br i1 %47, label %48, label %49

48:                                               ; preds = %45
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.116) #6
  br label %.critedge174

49:                                               ; preds = %45
  %50 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %38, ptr noundef nonnull @.str.117) #6
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.118) #6
  br label %.critedge174

53:                                               ; preds = %49
  %54 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %42, ptr noundef nonnull @.str.94) #6
  %55 = tail call double @XJSON_GetFloat(ptr noundef %54) #6
  %56 = fptrunc double %55 to float
  %57 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %42, ptr noundef nonnull @.str.95) #6
  %58 = tail call double @XJSON_GetFloat(ptr noundef %57) #6
  %59 = fptrunc double %58 to float
  %60 = tail call i32 @XFloatToU32(float noundef %56) #6
  %61 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %60, ptr %61, align 8, !tbaa !16
  %62 = tail call i32 @XFloatToU32(float noundef %59) #6
  %63 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 %62, ptr %63, align 4, !tbaa !22
  %64 = getelementptr inbounds i8, ptr %0, i64 120
  tail call void @XTOPApp_ParseCoreObj(ptr noundef nonnull %50, ptr noundef nonnull %64)
  %65 = tail call i64 @XJSON_GetArrayLength(ptr noundef nonnull %46) #6
  %66 = getelementptr inbounds i8, ptr %0, i64 68
  %67 = trunc i64 %65 to i16
  %68 = atomicrmw xchg ptr %66, i16 %67 seq_cst, align 4
  %.not189 = icmp eq i64 %65, 0
  br i1 %.not189, label %._crit_edge184, label %.lr.ph183

.lr.ph183:                                        ; preds = %53, %.critedge175
  %.1146181 = phi i64 [ %82, %.critedge175 ], [ 0, %53 ]
  %69 = tail call ptr @XJSON_GetArrayItem(ptr noundef nonnull %46, i64 noundef %.1146181) #6
  %.not167 = icmp eq ptr %69, null
  br i1 %.not167, label %.critedge175, label %70

70:                                               ; preds = %.lr.ph183
  %71 = tail call noalias dereferenceable_or_null(96) ptr @malloc(i64 noundef 96) #8
  %72 = icmp eq ptr %71, null
  br i1 %72, label %73, label %76

73:                                               ; preds = %70
  %74 = tail call ptr @__errno_location() #9
  %75 = load i32, ptr %74, align 4, !tbaa !13
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.119, i32 noundef %75) #6
  br label %.critedge174

76:                                               ; preds = %70
  tail call void @XTOPApp_ParseCoreObj(ptr noundef nonnull %69, ptr noundef nonnull %71)
  %77 = tail call i32 @XArray_AddData(ptr noundef nonnull %6, ptr noundef nonnull %71, i64 noundef 0) #6
  %78 = icmp slt i32 %77, 0
  br i1 %78, label %79, label %.critedge175

79:                                               ; preds = %76
  %80 = tail call ptr @__errno_location() #9
  %81 = load i32, ptr %80, align 4, !tbaa !13
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.120, i32 noundef %81) #6
  br label %.critedge174

.critedge175:                                     ; preds = %.lr.ph183, %76
  %82 = add nuw i64 %.1146181, 1
  %exitcond191.not = icmp eq i64 %82, %65
  br i1 %exitcond191.not, label %._crit_edge184, label %.lr.ph183, !llvm.loop !23

._crit_edge184:                                   ; preds = %.critedge175, %53
  %83 = load ptr, ptr %7, align 8, !tbaa !5
  %84 = tail call ptr @XJSON_GetObject(ptr noundef %83, ptr noundef nonnull @.str.121) #6
  %85 = icmp eq ptr %84, null
  br i1 %85, label %86, label %87

86:                                               ; preds = %._crit_edge184
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.122) #6
  br label %.critedge174

87:                                               ; preds = %._crit_edge184
  %88 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.123) #6
  %89 = tail call i64 @XJSON_GetU64(ptr noundef %88) #6
  %90 = getelementptr inbounds i8, ptr %0, i64 360
  store i64 %89, ptr %90, align 8, !tbaa !24
  %91 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.124) #6
  %92 = tail call i64 @XJSON_GetU64(ptr noundef %91) #6
  %93 = getelementptr inbounds i8, ptr %0, i64 328
  store i64 %92, ptr %93, align 8, !tbaa !26
  %94 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.125) #6
  %95 = tail call i64 @XJSON_GetU64(ptr noundef %94) #6
  store i64 %95, ptr %4, align 8, !tbaa !27
  %96 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.126) #6
  %97 = tail call i64 @XJSON_GetU64(ptr noundef %96) #6
  %98 = getelementptr inbounds i8, ptr %0, i64 280
  store i64 %97, ptr %98, align 8, !tbaa !28
  %99 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.127) #6
  %100 = tail call i64 @XJSON_GetU64(ptr noundef %99) #6
  %101 = getelementptr inbounds i8, ptr %0, i64 288
  store i64 %100, ptr %101, align 8, !tbaa !29
  %102 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.128) #6
  %103 = tail call i64 @XJSON_GetU64(ptr noundef %102) #6
  %104 = getelementptr inbounds i8, ptr %0, i64 296
  store i64 %103, ptr %104, align 8, !tbaa !30
  %105 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.129) #6
  %106 = tail call i64 @XJSON_GetU64(ptr noundef %105) #6
  %107 = getelementptr inbounds i8, ptr %0, i64 304
  store i64 %106, ptr %107, align 8, !tbaa !31
  %108 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.130) #6
  %109 = tail call i64 @XJSON_GetU64(ptr noundef %108) #6
  %110 = getelementptr inbounds i8, ptr %0, i64 312
  store i64 %109, ptr %110, align 8, !tbaa !32
  %111 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.131) #6
  %112 = tail call i64 @XJSON_GetU64(ptr noundef %111) #6
  %113 = getelementptr inbounds i8, ptr %0, i64 320
  store i64 %112, ptr %113, align 8, !tbaa !33
  %114 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.132) #6
  %115 = tail call i64 @XJSON_GetU64(ptr noundef %114) #6
  %116 = getelementptr inbounds i8, ptr %0, i64 336
  store i64 %115, ptr %116, align 8, !tbaa !34
  %117 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.133) #6
  %118 = tail call i64 @XJSON_GetU64(ptr noundef %117) #6
  %119 = getelementptr inbounds i8, ptr %0, i64 344
  store i64 %118, ptr %119, align 8, !tbaa !35
  %120 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %84, ptr noundef nonnull @.str.134) #6
  %121 = tail call i64 @XJSON_GetU64(ptr noundef %120) #6
  %122 = getelementptr inbounds i8, ptr %0, i64 352
  store i64 %121, ptr %122, align 8, !tbaa !36
  %123 = load ptr, ptr %7, align 8, !tbaa !5
  %124 = tail call ptr @XJSON_GetObject(ptr noundef %123, ptr noundef nonnull @.str.135) #6
  %125 = icmp eq ptr %124, null
  br i1 %125, label %126, label %127

126:                                              ; preds = %87
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.136) #6
  br label %.critedge174

127:                                              ; preds = %87
  %128 = tail call i64 @XJSON_GetArrayLength(ptr noundef nonnull %124) #6
  %.not190 = icmp eq i64 %128, 0
  br i1 %.not190, label %.critedge174, label %.lr.ph187

.lr.ph187:                                        ; preds = %127, %.critedge177
  %.2147185 = phi i64 [ %191, %.critedge177 ], [ 0, %127 ]
  %129 = tail call ptr @XJSON_GetArrayItem(ptr noundef nonnull %124, i64 noundef %.2147185) #6
  %.not = icmp eq ptr %129, null
  br i1 %.not, label %.critedge177, label %130

130:                                              ; preds = %.lr.ph187
  %calloc = tail call dereferenceable_or_null(33240) ptr @calloc(i64 1, i64 33240)
  %131 = icmp eq ptr %calloc, null
  br i1 %131, label %132, label %135

132:                                              ; preds = %130
  %133 = tail call ptr @__errno_location() #9
  %134 = load i32, ptr %133, align 4, !tbaa !13
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.137, i32 noundef %134) #6
  br label %.critedge174

135:                                              ; preds = %130
  %136 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.138) #6
  %137 = tail call i64 @XJSON_GetU64(ptr noundef %136) #6
  store i64 %137, ptr %calloc, align 8, !tbaa !37
  %138 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.139) #6
  %139 = tail call i64 @XJSON_GetU64(ptr noundef %138) #6
  %140 = getelementptr inbounds i8, ptr %calloc, i64 8
  store i64 %139, ptr %140, align 8, !tbaa !39
  %141 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.140) #6
  %142 = tail call i64 @XJSON_GetU64(ptr noundef %141) #6
  %143 = getelementptr inbounds i8, ptr %calloc, i64 16
  store i64 %142, ptr %143, align 8, !tbaa !40
  %144 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.141) #6
  %145 = tail call i64 @XJSON_GetU64(ptr noundef %144) #6
  %146 = getelementptr inbounds i8, ptr %calloc, i64 24
  store i64 %145, ptr %146, align 8, !tbaa !41
  %147 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.142) #6
  %148 = tail call i64 @XJSON_GetU64(ptr noundef %147) #6
  %149 = getelementptr inbounds i8, ptr %calloc, i64 40
  store i64 %148, ptr %149, align 8, !tbaa !42
  %150 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.143) #6
  %151 = tail call i64 @XJSON_GetU64(ptr noundef %150) #6
  %152 = getelementptr inbounds i8, ptr %calloc, i64 48
  store i64 %151, ptr %152, align 8, !tbaa !43
  %153 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.144) #6
  %154 = tail call i64 @XJSON_GetU64(ptr noundef %153) #6
  %155 = getelementptr inbounds i8, ptr %calloc, i64 56
  store i64 %154, ptr %155, align 8, !tbaa !44
  %156 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.145) #6
  %157 = tail call i64 @XJSON_GetU64(ptr noundef %156) #6
  %158 = getelementptr inbounds i8, ptr %calloc, i64 64
  store i64 %157, ptr %158, align 8, !tbaa !45
  %159 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.146) #6
  %160 = tail call i64 @XJSON_GetU64(ptr noundef %159) #6
  %161 = getelementptr inbounds i8, ptr %calloc, i64 72
  store i64 %160, ptr %161, align 8, !tbaa !46
  %162 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.147) #6
  %163 = tail call zeroext i8 @XJSON_GetBool(ptr noundef %162) #6
  %164 = getelementptr inbounds i8, ptr %calloc, i64 84
  store i8 %163, ptr %164, align 4, !tbaa !47
  %165 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.148) #6
  %166 = tail call i32 @XJSON_GetU32(ptr noundef %165) #6
  %167 = getelementptr inbounds i8, ptr %calloc, i64 80
  store i32 %166, ptr %167, align 8, !tbaa !48
  %168 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.149) #6
  %169 = tail call ptr @XJSON_GetString(ptr noundef %168) #6
  %.not164 = icmp eq ptr %169, null
  br i1 %.not164, label %173, label %170

170:                                              ; preds = %135
  %171 = getelementptr inbounds i8, ptr %calloc, i64 85
  %172 = tail call i64 @xstrncpy(ptr noundef nonnull %171, i64 noundef 256, ptr noundef nonnull %169) #6
  br label %173

173:                                              ; preds = %170, %135
  %174 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.150) #6
  %175 = tail call ptr @XJSON_GetString(ptr noundef %174) #6
  %.not165 = icmp eq ptr %175, null
  br i1 %.not165, label %179, label %176

176:                                              ; preds = %173
  %177 = getelementptr inbounds i8, ptr %calloc, i64 341
  %178 = tail call i64 @xstrncpy(ptr noundef nonnull %177, i64 noundef 64, ptr noundef nonnull %175) #6
  br label %179

179:                                              ; preds = %176, %173
  %180 = tail call ptr @XJSON_GetObject(ptr noundef nonnull %129, ptr noundef nonnull @.str.151) #6
  %181 = tail call ptr @XJSON_GetString(ptr noundef %180) #6
  %.not166 = icmp eq ptr %181, null
  br i1 %.not166, label %185, label %182

182:                                              ; preds = %179
  %183 = getelementptr inbounds i8, ptr %calloc, i64 405
  %184 = tail call i64 @xstrncpy(ptr noundef nonnull %183, i64 noundef 64, ptr noundef nonnull %181) #6
  br label %185

185:                                              ; preds = %182, %179
  %186 = tail call i32 @XArray_AddData(ptr noundef nonnull %5, ptr noundef nonnull %calloc, i64 noundef 0) #6
  %187 = icmp slt i32 %186, 0
  br i1 %187, label %188, label %.critedge177

188:                                              ; preds = %185
  %189 = tail call ptr @__errno_location() #9
  %190 = load i32, ptr %189, align 4, !tbaa !13
  tail call void (i32, i8, ptr, ...) @XLog_Display(i32 noundef 64, i8 noundef zeroext 1, ptr noundef nonnull @.str.152, i32 noundef %190) #6
  br label %.critedge174

.critedge177:                                     ; preds = %185, %.lr.ph187
  %191 = add nuw i64 %.2147185, 1
  %exitcond192.not = icmp eq i64 %191, %128
  br i1 %exitcond192.not, label %.critedge174, label %.lr.ph187, !llvm.loop !49

.critedge174:                                     ; preds = %.critedge177, %127, %188, %132, %44, %52, %86, %126, %79, %73, %48, %40, %11
  %.17 = phi i32 [ -1, %11 ], [ -1, %40 ], [ -1, %44 ], [ -1, %48 ], [ -1, %52 ], [ -1, %73 ], [ -1, %79 ], [ -1, %86 ], [ -1, %126 ], [ -1, %132 ], [ -1, %188 ], [ 1, %127 ], [ 1, %.critedge177 ]
  ret i32 %.17
}

declare void @XArray_Destroy(ptr noundef) local_unnamed_addr #0

declare i64 @XJSON_GetArrayLength(ptr noundef) local_unnamed_addr #0

declare ptr @XJSON_GetArrayItem(ptr noundef, i64 noundef) local_unnamed_addr #0

declare double @XJSON_GetFloat(ptr noundef) local_unnamed_addr #0

declare ptr @XJSON_GetString(ptr noundef) local_unnamed_addr #0

declare i32 @XFloatToU32(float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #4

declare i32 @XArray_AddData(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #0

declare i64 @XJSON_GetU64(ptr noundef) local_unnamed_addr #0

declare zeroext i8 @XJSON_GetBool(ptr noundef) local_unnamed_addr #0

; Function Attrs: nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @calloc(i64 noundef, i64 noundef) local_unnamed_addr #5

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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { nofree nounwind willreturn allockind("alloc,zeroed") allocsize(0,1) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" }
attributes #6 = { nounwind }
attributes #7 = { nounwind willreturn memory(read) }
attributes #8 = { nounwind allocsize(0) }
attributes #9 = { nounwind willreturn memory(none) }

!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, !11, i64 32}
!6 = !{!"xjson_", !7, i64 0, !8, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !12, i64 64}
!7 = !{!"xjson_token_", !8, i64 0, !11, i64 8, !12, i64 16}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!"long", !9, i64 0}
!13 = !{!8, !8, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = !{!17, !8, i64 16}
!17 = !{!"XCPUStats", !9, i64 0, !18, i64 12, !19, i64 16, !20, i64 64, !21, i64 160}
!18 = !{!"short", !9, i64 0}
!19 = !{!"XProcInfo", !8, i64 0, !8, i64 4, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40}
!20 = !{!"XCPUInfo", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28, !8, i64 32, !8, i64 36, !8, i64 40, !8, i64 44, !8, i64 48, !8, i64 52, !8, i64 56, !8, i64 60, !8, i64 64, !8, i64 68, !8, i64 72, !8, i64 76, !8, i64 80, !12, i64 88}
!21 = !{!"XArray_", !11, i64 0, !11, i64 8, !8, i64 16, !11, i64 24, !9, i64 32, !9, i64 33, !9, i64 34, !12, i64 40, !12, i64 48}
!22 = !{!17, !8, i64 20}
!23 = distinct !{!23, !15}
!24 = !{!25, !12, i64 88}
!25 = !{!"XMemInfo", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88}
!26 = !{!25, !12, i64 56}
!27 = !{!25, !12, i64 0}
!28 = !{!25, !12, i64 8}
!29 = !{!25, !12, i64 16}
!30 = !{!25, !12, i64 24}
!31 = !{!25, !12, i64 32}
!32 = !{!25, !12, i64 40}
!33 = !{!25, !12, i64 48}
!34 = !{!25, !12, i64 64}
!35 = !{!25, !12, i64 72}
!36 = !{!25, !12, i64 80}
!37 = !{!38, !12, i64 0}
!38 = !{!"XNetIface", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !18, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !12, i64 64, !12, i64 72, !8, i64 80, !9, i64 84, !9, i64 85, !9, i64 341, !9, i64 405, !9, i64 469}
!39 = !{!38, !12, i64 8}
!40 = !{!38, !12, i64 16}
!41 = !{!38, !12, i64 24}
!42 = !{!38, !12, i64 40}
!43 = !{!38, !12, i64 48}
!44 = !{!38, !12, i64 56}
!45 = !{!38, !12, i64 64}
!46 = !{!38, !12, i64 72}
!47 = !{!38, !9, i64 84}
!48 = !{!38, !8, i64 80}
!49 = distinct !{!49, !15}


; Effective O3 passes: CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass