#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */
typedef struct TYPE_14__ TYPE_4__;
typedef struct TYPE_13__ TYPE_3__;
typedef struct TYPE_12__ TYPE_1__;

/* Type definitions */
typedef int /*<<< orphan*/ buffer;
typedef TYPE_1__ *XtResourceList;
struct TYPE_12__ {
  int resource_size;
  int /*<<< orphan*/ resource_type;
  int /*<<< orphan*/ resource_name;
};
typedef TYPE_1__ XtResource;
typedef int /*<<< orphan*/ *XtPointer;
struct TYPE_13__ {
  int size;
  char *addr;
};
typedef TYPE_3__ XrmValue;
typedef char *XPointer;
typedef int /*<<< orphan*/ *Widget;
struct TYPE_14__ {
  scalar_t__ value;
  int /*<<< orphan*/ name;
};
typedef size_t Cardinal;
typedef TYPE_4__ Arg;

/* Variables and functions */
int /*<<< orphan*/ XmuSnprintf(char *, int, char *, int);
int /*<<< orphan*/ XtClass(int /*<<< orphan*/ *);
scalar_t__ XtConvertAndStore(int /*<<< orphan*/ *, int /*<<< orphan*/,
                             TYPE_3__ *, int /*<<< orphan*/, TYPE_3__ *);
int /*<<< orphan*/ XtFree(char *);
int /*<<< orphan*/ XtGetConstraintResourceList(int /*<<< orphan*/, TYPE_1__ **,
                                               size_t *);
int /*<<< orphan*/ XtGetResourceList(int /*<<< orphan*/, TYPE_1__ **, size_t *);
int /*<<< orphan*/ XtGetValues(int /*<<< orphan*/ *, TYPE_4__ *, int);
int /*<<< orphan*/ *XtParent(int /*<<< orphan*/ *);
int /*<<< orphan*/ XtRString;
int /*<<< orphan*/ XtSetArg(TYPE_4__, int /*<<< orphan*/, ...);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(int /*<<< orphan*/, int /*<<< orphan*/);
void _XEditresGetStringValues(Widget w, Arg *warg, int numargs) {
  static char buffer[32];
  XtResourceList res_list;
  Cardinal num_res;
  XtResource *res = NULL;
  long value;
  Cardinal i;
  char *string = "";
  Arg args[1];
  XrmValue to, from;
  XtGetResourceList(XtClass(w), &res_list, &num_res);
  for (i = 0; i < num_res; i++)
    if (strcmp(res_list[i].resource_name, warg->name) == 0) {
      res = &res_list[i];
      break;
    }
  if (res == NULL && XtParent(w) != NULL) {
    XtFree((char *)res_list);
    XtGetConstraintResourceList(XtClass(XtParent(w)), &res_list, &num_res);
    for (i = 0; i < num_res; i++)
      if (strcmp(res_list[i].resource_name, warg->name) == 0) {
        res = &res_list[i];
        break;
      }
  }
  if (res == NULL) {
    XtFree((char *)res_list);
    *(XtPointer *)warg->value = NULL;
    return;
  }
  switch (res->resource_size) {
    int v4;
    short v2;
    char v1;
  case 1:
    XtSetArg(args[0], res->resource_name, &v1);
    XtGetValues(w, args, 1);
    value = (int)v1;
    break;
  case 2:
    XtSetArg(args[0], res->resource_name, &v2);
    XtGetValues(w, args, 1);
    value = (int)v2;
    break;
  case 4:
    XtSetArg(args[0], res->resource_name, &v4);
    XtGetValues(w, args, 1);
    value = (int)v4;
    break;
  default:
    fprintf(stderr, "_XEditresGetStringValues: bad size %d\n",
            res->resource_size);
    string = "bad size";
    *(char **)(warg->value) = string;
    XtFree((char *)res_list);
    return;
  }
  if (strcmp(XtRString, res->resource_type) == 0) {
    if (value == 0)
      string = "(null)";
    else
      string = (char *)value;
  } else {
    from.size = res->resource_size;
    from.addr = (XPointer)&value;
    to.addr = NULL;
    to.size = 0;
    if (XtConvertAndStore(w, res->resource_type, &from, XtRString, &to))
      string = to.addr;
    else {
      string = buffer;
      switch (res->resource_size) {
      case sizeof(char):
        XmuSnprintf(buffer, sizeof(buffer), "%d", (int)(value & 0xff));
        break;
      case sizeof(short):
        XmuSnprintf(buffer, sizeof(buffer), "%d", (int)(value & 0xffff));
        break;
      case sizeof(int):
        XmuSnprintf(buffer, sizeof(buffer), "0x%08hx", (int)value);
        break;
      }
    }
  }
  if (string == NULL)
    string = "";
  *(char **)(warg->value) = string;
  XtFree((char *)res_list);
}


x86 assembly (clang, -O0):
<_XEditresGetStringValues>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movq   $0x0,-0x30(%rbp)
lea    0xe51(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <XtClass@plt>
mov    %eax,%edi
lea    -0x20(%rbp),%rsi
lea    -0x28(%rbp),%rdx
call   10c0 <XtGetResourceList@plt>
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    1257 <_XEditresGetStringValues+0xa7>
mov    -0x20(%rbp),%rax
imul   $0xc,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%esi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1241 <_XEditresGetStringValues+0x91>
mov    -0x20(%rbp),%rax
imul   $0xc,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
jmp    1257 <_XEditresGetStringValues+0xa7>
jmp    1246 <_XEditresGetStringValues+0x96>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    11f9 <_XEditresGetStringValues+0x49>
cmpq   $0x0,-0x30(%rbp)
jne    1309 <_XEditresGetStringValues+0x159>
mov    -0x8(%rbp),%rdi
call   10d0 <XtParent@plt>
cmp    $0x0,%rax
je     1309 <_XEditresGetStringValues+0x159>
mov    -0x20(%rbp),%rdi
call   10b0 <XtFree@plt>
mov    -0x8(%rbp),%rdi
call   10d0 <XtParent@plt>
mov    %rax,%rdi
call   1060 <XtClass@plt>
mov    %eax,%edi
lea    -0x20(%rbp),%rsi
lea    -0x28(%rbp),%rdx
call   1030 <XtGetConstraintResourceList@plt>
movq   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x28(%rbp),%rax
jae    1304 <_XEditresGetStringValues+0x154>
mov    -0x20(%rbp),%rax
imul   $0xc,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    0x8(%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%esi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12ee <_XEditresGetStringValues+0x13e>
mov    -0x20(%rbp),%rax
imul   $0xc,-0x40(%rbp),%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
jmp    1304 <_XEditresGetStringValues+0x154>
jmp    12f3 <_XEditresGetStringValues+0x143>
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    12a6 <_XEditresGetStringValues+0xf6>
jmp    1309 <_XEditresGetStringValues+0x159>
cmpq   $0x0,-0x30(%rbp)
jne    1330 <_XEditresGetStringValues+0x180>
mov    -0x20(%rbp),%rdi
call   10b0 <XtFree@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
movq   $0x0,(%rax)
jmp    1605 <_XEditresGetStringValues+0x455>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x8c(%rbp)
sub    $0x1,%eax
je     1372 <_XEditresGetStringValues+0x1c2>
jmp    134a <_XEditresGetStringValues+0x19a>
mov    -0x8c(%rbp),%eax
sub    $0x2,%eax
je     13b2 <_XEditresGetStringValues+0x202>
jmp    135e <_XEditresGetStringValues+0x1ae>
mov    -0x8c(%rbp),%eax
sub    $0x4,%eax
je     13f2 <_XEditresGetStringValues+0x242>
jmp    1430 <_XEditresGetStringValues+0x280>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edx
mov    -0x60(%rbp),%rdi
mov    -0x58(%rbp),%esi
lea    -0x87(%rbp),%rcx
mov    $0x0,%al
call   1070 <XtSetArg@plt>
mov    -0x8(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    $0x1,%edx
call   1040 <XtGetValues@plt>
movsbl -0x87(%rbp),%eax
cltq
mov    %rax,-0x38(%rbp)
jmp    1472 <_XEditresGetStringValues+0x2c2>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edx
mov    -0x60(%rbp),%rdi
mov    -0x58(%rbp),%esi
lea    -0x86(%rbp),%rcx
mov    $0x0,%al
call   1070 <XtSetArg@plt>
mov    -0x8(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    $0x1,%edx
call   1040 <XtGetValues@plt>
movswl -0x86(%rbp),%eax
cltq
mov    %rax,-0x38(%rbp)
jmp    1472 <_XEditresGetStringValues+0x2c2>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%edx
mov    -0x60(%rbp),%rdi
mov    -0x58(%rbp),%esi
lea    -0x84(%rbp),%rcx
mov    $0x0,%al
call   1070 <XtSetArg@plt>
mov    -0x8(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    $0x1,%edx
call   1040 <XtGetValues@plt>
movslq -0x84(%rbp),%rax
mov    %rax,-0x38(%rbp)
jmp    1472 <_XEditresGetStringValues+0x2c2>
mov    0x2ba1(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rax
mov    (%rax),%edx
lea    0xbba(%rip),%rsi
call   1090 <fprintf@plt>
lea    0xbd5(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rdi
call   10b0 <XtFree@plt>
jmp    1605 <_XEditresGetStringValues+0x455>
mov    0x2b6f(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%esi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    14b9 <_XEditresGetStringValues+0x309>
cmpq   $0x0,-0x38(%rbp)
jne    14ac <_XEditresGetStringValues+0x2fc>
lea    0xb8d(%rip),%rax
mov    %rax,-0x48(%rbp)
jmp    14b4 <_XEditresGetStringValues+0x304>
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    15d8 <_XEditresGetStringValues+0x428>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x80(%rbp)
lea    -0x38(%rbp),%rax
mov    %rax,-0x78(%rbp)
movq   $0x0,-0x68(%rbp)
movl   $0x0,-0x70(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%esi
mov    0x2afd(%rip),%rax
mov    (%rax),%ecx
lea    -0x80(%rbp),%rdx
lea    -0x70(%rbp),%r8
call   10a0 <XtConvertAndStore@plt>
cmp    $0x0,%rax
je     1511 <_XEditresGetStringValues+0x361>
mov    -0x68(%rbp),%rax
mov    %rax,-0x48(%rbp)
jmp    15d3 <_XEditresGetStringValues+0x423>
lea    0x2b78(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x90(%rbp)
sub    $0x1,%eax
je     155e <_XEditresGetStringValues+0x3ae>
jmp    1536 <_XEditresGetStringValues+0x386>
mov    -0x90(%rbp),%eax
sub    $0x2,%eax
je     1587 <_XEditresGetStringValues+0x3d7>
jmp    154a <_XEditresGetStringValues+0x39a>
mov    -0x90(%rbp),%eax
sub    $0x4,%eax
je     15b0 <_XEditresGetStringValues+0x400>
jmp    15ce <_XEditresGetStringValues+0x41e>
mov    -0x38(%rbp),%rax
and    $0xff,%rax
mov    %eax,%ecx
lea    0x2b1f(%rip),%rdi
mov    $0x20,%esi
lea    0xaba(%rip),%rdx
call   1050 <XmuSnprintf@plt>
jmp    15ce <_XEditresGetStringValues+0x41e>
mov    -0x38(%rbp),%rax
and    $0xffff,%rax
mov    %eax,%ecx
lea    0x2af6(%rip),%rdi
mov    $0x20,%esi
lea    0xa91(%rip),%rdx
call   1050 <XmuSnprintf@plt>
jmp    15ce <_XEditresGetStringValues+0x41e>
mov    -0x38(%rbp),%rax
mov    %eax,%ecx
lea    0x2ad3(%rip),%rdi
mov    $0x20,%esi
lea    0xa71(%rip),%rdx
call   1050 <XmuSnprintf@plt>
jmp    15d3 <_XEditresGetStringValues+0x423>
jmp    15d8 <_XEditresGetStringValues+0x428>
cmpq   $0x0,-0x48(%rbp)
jne    15ee <_XEditresGetStringValues+0x43e>
lea    0xa3c(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rcx
mov    -0x10(%rbp),%rax
mov    (%rax),%rax
mov    %rcx,(%rax)
mov    -0x20(%rbp),%rdi
call   10b0 <XtFree@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_XEditresGetStringValues>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x60,%rsp
mov    %rsi,%r13
mov    %rdi,%r14
call   1060 <XtClass@plt>
lea    0x8(%rsp),%rsi
lea    0x20(%rsp),%rdx
mov    %eax,%edi
call   10c0 <XtGetResourceList@plt>
cmpq   $0x0,0x20(%rsp)
je     1227 <_XEditresGetStringValues+0x77>
xor    %r15d,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    0x8(%rsp),%rax
mov    0x8(%rax,%r15,1),%edi
mov    0x8(%r13),%esi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1219 <_XEditresGetStringValues+0x69>
add    $0x1,%rbx
add    $0xc,%r15
cmp    0x20(%rsp),%rbx
jb     11f0 <_XEditresGetStringValues+0x40>
jmp    1227 <_XEditresGetStringValues+0x77>
mov    0x8(%rsp),%r12
test   %r12,%r12
jne    12b3 <_XEditresGetStringValues+0x103>
mov    %r14,%rdi
call   10d0 <XtParent@plt>
test   %rax,%rax
je     12f8 <_XEditresGetStringValues+0x148>
mov    0x8(%rsp),%rdi
call   10b0 <XtFree@plt>
mov    %r14,%rdi
call   10d0 <XtParent@plt>
mov    %rax,%rdi
call   1060 <XtClass@plt>
lea    0x8(%rsp),%rsi
lea    0x20(%rsp),%rdx
mov    %eax,%edi
call   1030 <XtGetConstraintResourceList@plt>
cmpq   $0x0,0x20(%rsp)
je     12f8 <_XEditresGetStringValues+0x148>
xor    %r15d,%r15d
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    0x8(%rsp),%rax
mov    0x8(%rax,%r15,1),%edi
mov    0x8(%r13),%esi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12a9 <_XEditresGetStringValues+0xf9>
add    $0x1,%rbx
add    $0xc,%r15
cmp    0x20(%rsp),%rbx
jb     1280 <_XEditresGetStringValues+0xd0>
jmp    12f8 <_XEditresGetStringValues+0x148>
mov    0x8(%rsp),%r12
test   %r12,%r12
je     12f8 <_XEditresGetStringValues+0x148>
add    %r15,%r12
mov    (%r12),%edx
cmp    $0x4,%edx
je     1312 <_XEditresGetStringValues+0x162>
cmp    $0x2,%edx
je     133c <_XEditresGetStringValues+0x18c>
cmp    $0x1,%edx
jne    13df <_XEditresGetStringValues+0x22f>
mov    0x8(%r12),%edx
lea    0x7(%rsp),%rcx
xor    %eax,%eax
call   1070 <XtSetArg@plt>
lea    0x40(%rsp),%rsi
mov    %r14,%rdi
mov    $0x1,%edx
call   1040 <XtGetValues@plt>
movsbq 0x7(%rsp),%r15
jmp    1365 <_XEditresGetStringValues+0x1b5>
mov    0x8(%rsp),%rdi
call   10b0 <XtFree@plt>
mov    0x0(%r13),%rax
movq   $0x0,(%rax)
jmp    147a <_XEditresGetStringValues+0x2ca>
mov    0x8(%r12),%edx
lea    0x2c(%rsp),%rcx
xor    %eax,%eax
call   1070 <XtSetArg@plt>
lea    0x40(%rsp),%rsi
mov    %r14,%rdi
mov    $0x1,%edx
call   1040 <XtGetValues@plt>
movslq 0x2c(%rsp),%r15
jmp    1365 <_XEditresGetStringValues+0x1b5>
mov    0x8(%r12),%edx
lea    0x16(%rsp),%rcx
xor    %eax,%eax
call   1070 <XtSetArg@plt>
lea    0x40(%rsp),%rsi
mov    %r14,%rdi
mov    $0x1,%edx
call   1040 <XtGetValues@plt>
movswq 0x16(%rsp),%r15
mov    %r15,0x18(%rsp)
mov    0x2c77(%rip),%rbx
mov    (%rbx),%edi
mov    0x4(%r12),%esi
call   1080 <strcmp@plt>
test   %rax,%rax
je     13cd <_XEditresGetStringValues+0x21d>
mov    (%r12),%eax
mov    %eax,0x50(%rsp)
lea    0x18(%rsp),%rax
mov    %rax,0x58(%rsp)
movq   $0x0,0x38(%rsp)
movl   $0x0,0x30(%rsp)
mov    0x4(%r12),%esi
mov    (%rbx),%ecx
lea    0x50(%rsp),%rdx
lea    0x30(%rsp),%r8
mov    %r14,%rdi
call   10a0 <XtConvertAndStore@plt>
test   %rax,%rax
je     1404 <_XEditresGetStringValues+0x254>
mov    0x38(%rsp),%r15
jmp    145b <_XEditresGetStringValues+0x2ab>
test   %r15,%r15
jne    145b <_XEditresGetStringValues+0x2ab>
lea    0xc53(%rip),%r15
jmp    145b <_XEditresGetStringValues+0x2ab>
mov    0x2bf2(%rip),%rax
mov    (%rax),%edi
lea    0xc11(%rip),%rsi
call   1090 <fprintf@plt>
mov    0x0(%r13),%rax
lea    0xc28(%rip),%rcx
mov    %rcx,(%rax)
jmp    1470 <_XEditresGetStringValues+0x2c0>
mov    (%r12),%eax
cmp    $0x4,%eax
je     141e <_XEditresGetStringValues+0x26e>
cmp    $0x2,%eax
je     1432 <_XEditresGetStringValues+0x282>
cmp    $0x1,%eax
jne    1454 <_XEditresGetStringValues+0x2a4>
movzbl 0x18(%rsp),%ecx
jmp    1437 <_XEditresGetStringValues+0x287>
mov    0x18(%rsp),%ecx
lea    0x2c67(%rip),%r15
lea    0xc0a(%rip),%rdx
jmp    1445 <_XEditresGetStringValues+0x295>
movzwl 0x18(%rsp),%ecx
lea    0x2c52(%rip),%r15
lea    0xbf2(%rip),%rdx
mov    %r15,%rdi
mov    $0x20,%esi
call   1050 <XmuSnprintf@plt>
jmp    145b <_XEditresGetStringValues+0x2ab>
lea    0x2c35(%rip),%r15
test   %r15,%r15
lea    0xbc1(%rip),%rax
cmovne %r15,%rax
mov    0x0(%r13),%rcx
mov    %rax,(%rcx)
mov    0x8(%rsp),%rdi
call   10b0 <XtFree@plt>
add    $0x60,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
%struct.TYPE_14__ = type { i64, i32 }
%struct.TYPE_12__ = type { i32, i32, i32 }
%struct.TYPE_13__ = type { i32, i8* }
@_XEditresGetStringValues.buffer = internal global [32 x i8] zeroinitializer
@.str = [1 x i8] zeroinitializer
@stderr = global i32 0
@.str.1 = [39 x i8] c"_XEditresGetStringValues: bad size %d\0A\00"
@.str.2 = [9 x i8] c"bad size\00"
@XtRString = global i32 0
@.str.3 = [7 x i8] c"(null)\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [8 x i8] c"0x%08hx\00"
define void @_XEditresGetStringValues(i32* %0, %struct.TYPE_14__* %1, i32 %2) {
%4 = alloca i32*
%5 = alloca %struct.TYPE_14__*
%6 = alloca i32
%7 = alloca %struct.TYPE_12__*
%8 = alloca i64
%9 = alloca %struct.TYPE_12__*
%10 = alloca i64
%11 = alloca i64
%12 = alloca i8*
%13 = alloca [1 x %struct.TYPE_14__]
%14 = alloca %struct.TYPE_13__
%15 = alloca %struct.TYPE_13__
%16 = alloca i32
%17 = alloca i16
%18 = alloca i8
store i32* %0, i32** %4
store %struct.TYPE_14__* %1, %struct.TYPE_14__** %5
store i32 %2, i32* %6
store %struct.TYPE_12__* null, %struct.TYPE_12__** %9
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %12
%19 = load i32*, i32** %4
%20 = call i32 @XtClass(i32* %19)
%21 = call i32 @XtGetResourceList(i32 %20, %struct.TYPE_12__** %7, i64* %8)
store i64 0, i64* %11
br label %22
22: ; preds = %42, %3
%23 = load i64, i64* %11
%24 = load i64, i64* %8
%25 = icmp ult i64 %23, %24
br i1 %25, label %26, label %45
26: ; preds = %22
%27 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%28 = load i64, i64* %11
%29 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %27, i64 %28
%30 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %29, i32 0, i32 2
%31 = load i32, i32* %30
%32 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%33 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %32, i32 0, i32 1
%34 = load i32, i32* %33
%35 = call i64 @strcmp(i32 %31, i32 %34)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %26
%38 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%39 = load i64, i64* %11
%40 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %38, i64 %39
store %struct.TYPE_12__* %40, %struct.TYPE_12__** %9
br label %45
41: ; preds = %26
br label %42
42: ; preds = %41
%43 = load i64, i64* %11
%44 = add i64 %43, 1
store i64 %44, i64* %11
br label %22
45: ; preds = %37, %22
%46 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%47 = icmp eq %struct.TYPE_12__* %46, null
br i1 %47, label %48, label %84
48: ; preds = %45
%49 = load i32*, i32** %4
%50 = call i32* @XtParent(i32* %49)
%51 = icmp ne i32* %50, null
br i1 %51, label %52, label %84
52: ; preds = %48
%53 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%54 = bitcast %struct.TYPE_12__* %53 to i8*
%55 = call i32 @XtFree(i8* %54)
%56 = load i32*, i32** %4
%57 = call i32* @XtParent(i32* %56)
%58 = call i32 @XtClass(i32* %57)
%59 = call i32 @XtGetConstraintResourceList(i32 %58, %struct.TYPE_12__** %7, i64* %8)
store i64 0, i64* %11
br label %60
60: ; preds = %80, %52
%61 = load i64, i64* %11
%62 = load i64, i64* %8
%63 = icmp ult i64 %61, %62
br i1 %63, label %64, label %83
64: ; preds = %60
%65 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%66 = load i64, i64* %11
%67 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %65, i64 %66
%68 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %67, i32 0, i32 2
%69 = load i32, i32* %68
%70 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%71 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %70, i32 0, i32 1
%72 = load i32, i32* %71
%73 = call i64 @strcmp(i32 %69, i32 %72)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %79
75: ; preds = %64
%76 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%77 = load i64, i64* %11
%78 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %76, i64 %77
store %struct.TYPE_12__* %78, %struct.TYPE_12__** %9
br label %83
79: ; preds = %64
br label %80
80: ; preds = %79
%81 = load i64, i64* %11
%82 = add i64 %81, 1
store i64 %82, i64* %11
br label %60
83: ; preds = %75, %60
br label %84
84: ; preds = %83, %48, %45
%85 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%86 = icmp eq %struct.TYPE_12__* %85, null
br i1 %86, label %87, label %95
87: ; preds = %84
%88 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%89 = bitcast %struct.TYPE_12__* %88 to i8*
%90 = call i32 @XtFree(i8* %89)
%91 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%92 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %91, i32 0, i32 0
%93 = load i64, i64* %92
%94 = inttoptr i64 %93 to i32**
store i32* null, i32** %94
br label %230
95: ; preds = %84
%96 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%97 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %96, i32 0, i32 0
%98 = load i32, i32* %97
switch i32 %98, label %149 [
i32 1, label %99
i32 2, label %116
i32 4, label %133
]
99: ; preds = %95
%100 = getelementptr inbounds [1 x %struct.TYPE_14__], [1 x %struct.TYPE_14__]* %13, i64 0, i64 0
%101 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%102 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %101, i32 0, i32 2
%103 = load i32, i32* %102
%104 = bitcast %struct.TYPE_14__* %100 to { i64, i32 }*
%105 = getelementptr inbounds { i64, i32 }, { i64, i32 }* %104, i32 0, i32 0
%106 = load i64, i64* %105
%107 = getelementptr inbounds { i64, i32 }, { i64, i32 }* %104, i32 0, i32 1
%108 = load i32, i32* %107
%109 = call i32 (i64, i32, i32, ...) @XtSetArg(i64 %106, i32 %108, i32 %103, i8* %18)
%110 = load i32*, i32** %4
%111 = getelementptr inbounds [1 x %struct.TYPE_14__], [1 x %struct.TYPE_14__]* %13, i64 0, i64 0
%112 = call i32 @XtGetValues(i32* %110, %struct.TYPE_14__* %111, i32 1)
%113 = load i8, i8* %18
%114 = sext i8 %113 to i32
%115 = sext i32 %114 to i64
store i64 %115, i64* %10
br label %163
116: ; preds = %95
%117 = getelementptr inbounds [1 x %struct.TYPE_14__], [1 x %struct.TYPE_14__]* %13, i64 0, i64 0
%118 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%119 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %118, i32 0, i32 2
%120 = load i32, i32* %119
%121 = bitcast %struct.TYPE_14__* %117 to { i64, i32 }*
%122 = getelementptr inbounds { i64, i32 }, { i64, i32 }* %121, i32 0, i32 0
%123 = load i64, i64* %122
%124 = getelementptr inbounds { i64, i32 }, { i64, i32 }* %121, i32 0, i32 1
%125 = load i32, i32* %124
%126 = call i32 (i64, i32, i32, ...) @XtSetArg(i64 %123, i32 %125, i32 %120, i16* %17)
%127 = load i32*, i32** %4
%128 = getelementptr inbounds [1 x %struct.TYPE_14__], [1 x %struct.TYPE_14__]* %13, i64 0, i64 0
%129 = call i32 @XtGetValues(i32* %127, %struct.TYPE_14__* %128, i32 1)
%130 = load i16, i16* %17
%131 = sext i16 %130 to i32
%132 = sext i32 %131 to i64
store i64 %132, i64* %10
br label %163
133: ; preds = %95
%134 = getelementptr inbounds [1 x %struct.TYPE_14__], [1 x %struct.TYPE_14__]* %13, i64 0, i64 0
%135 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%136 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %135, i32 0, i32 2
%137 = load i32, i32* %136
%138 = bitcast %struct.TYPE_14__* %134 to { i64, i32 }*
%139 = getelementptr inbounds { i64, i32 }, { i64, i32 }* %138, i32 0, i32 0
%140 = load i64, i64* %139
%141 = getelementptr inbounds { i64, i32 }, { i64, i32 }* %138, i32 0, i32 1
%142 = load i32, i32* %141
%143 = call i32 (i64, i32, i32, ...) @XtSetArg(i64 %140, i32 %142, i32 %137, i32* %16)
%144 = load i32*, i32** %4
%145 = getelementptr inbounds [1 x %struct.TYPE_14__], [1 x %struct.TYPE_14__]* %13, i64 0, i64 0
%146 = call i32 @XtGetValues(i32* %144, %struct.TYPE_14__* %145, i32 1)
%147 = load i32, i32* %16
%148 = sext i32 %147 to i64
store i64 %148, i64* %10
br label %163
149: ; preds = %95
%150 = load i32, i32* @stderr
%151 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%152 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %151, i32 0, i32 0
%153 = load i32, i32* %152
%154 = call i32 @fprintf(i32 %150, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %153)
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8** %12
%155 = load i8*, i8** %12
%156 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%157 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %156, i32 0, i32 0
%158 = load i64, i64* %157
%159 = inttoptr i64 %158 to i8**
store i8* %155, i8** %159
%160 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%161 = bitcast %struct.TYPE_12__* %160 to i8*
%162 = call i32 @XtFree(i8* %161)
br label %230
163: ; preds = %133, %116, %99
%164 = load i32, i32* @XtRString
%165 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%166 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %165, i32 0, i32 1
%167 = load i32, i32* %166
%168 = call i64 @strcmp(i32 %164, i32 %167)
%169 = icmp eq i64 %168, 0
br i1 %169, label %170, label %178
170: ; preds = %163
%171 = load i64, i64* %10
%172 = icmp eq i64 %171, 0
br i1 %172, label %173, label %174
173: ; preds = %170
store i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), i8** %12
br label %177
174: ; preds = %170
%175 = load i64, i64* %10
%176 = inttoptr i64 %175 to i8*
store i8* %176, i8** %12
br label %177
177: ; preds = %174, %173
br label %217
178: ; preds = %163
%179 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%180 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %179, i32 0, i32 0
%181 = load i32, i32* %180
%182 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %15, i32 0, i32 0
store i32 %181, i32* %182
%183 = bitcast i64* %10 to i8*
%184 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %15, i32 0, i32 1
store i8* %183, i8** %184
%185 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %14, i32 0, i32 1
store i8* null, i8** %185
%186 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %14, i32 0, i32 0
store i32 0, i32* %186
%187 = load i32*, i32** %4
%188 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%189 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %188, i32 0, i32 1
%190 = load i32, i32* %189
%191 = load i32, i32* @XtRString
%192 = call i64 @XtConvertAndStore(i32* %187, i32 %190, %struct.TYPE_13__* %15, i32 %191, %struct.TYPE_13__* %14)
%193 = icmp ne i64 %192, 0
br i1 %193, label %194, label %197
194: ; preds = %178
%195 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %14, i32 0, i32 1
%196 = load i8*, i8** %195
store i8* %196, i8** %12
br label %216
197: ; preds = %178
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), i8** %12
%198 = load %struct.TYPE_12__*, %struct.TYPE_12__** %9
%199 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %198, i32 0, i32 0
%200 = load i32, i32* %199
switch i32 %200, label %215 [
i32 1, label %201
i32 2, label %206
i32 4, label %211
]
201: ; preds = %197
%202 = load i64, i64* %10
%203 = and i64 %202, 255
%204 = trunc i64 %203 to i32
%205 = call i32 @XmuSnprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %204)
br label %215
206: ; preds = %197
%207 = load i64, i64* %10
%208 = and i64 %207, 65535
%209 = trunc i64 %208 to i32
%210 = call i32 @XmuSnprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %209)
br label %215
211: ; preds = %197
%212 = load i64, i64* %10
%213 = trunc i64 %212 to i32
%214 = call i32 @XmuSnprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %213)
br label %215
215: ; preds = %197, %211, %206, %201
br label %216
216: ; preds = %215, %194
br label %217
217: ; preds = %216, %177
%218 = load i8*, i8** %12
%219 = icmp eq i8* %218, null
br i1 %219, label %220, label %221
220: ; preds = %217
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8** %12
br label %221
221: ; preds = %220, %217
%222 = load i8*, i8** %12
%223 = load %struct.TYPE_14__*, %struct.TYPE_14__** %5
%224 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %223, i32 0, i32 0
%225 = load i64, i64* %224
%226 = inttoptr i64 %225 to i8**
store i8* %222, i8** %226
%227 = load %struct.TYPE_12__*, %struct.TYPE_12__** %7
%228 = bitcast %struct.TYPE_12__* %227 to i8*
%229 = call i32 @XtFree(i8* %228)
br label %230
230: ; preds = %221, %149, %87
ret void
}

LLVM IR (-O2):
%struct.TYPE_14__ = type { i64, i32 }
%struct.TYPE_12__ = type { i32, i32, i32 }
%struct.TYPE_13__ = type { i32, i8* }
@_XEditresGetStringValues.buffer = internal global [32 x i8] zeroinitializer
@.str = [1 x i8] zeroinitializer
@stderr = global i32 0
@.str.1 = [39 x i8] c"_XEditresGetStringValues: bad size %d\0A\00"
@.str.2 = [9 x i8] c"bad size\00"
@XtRString = global i32 0
@.str.3 = [7 x i8] c"(null)\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [8 x i8] c"0x%08hx\00"
define void @_XEditresGetStringValues(i32* %0, %struct.TYPE_14__* nocapture %1, i32 %2) {
%4 = alloca %struct.TYPE_12__*
%5 = alloca i64
%6 = alloca i64
%7 = alloca [1 x %struct.TYPE_14__]
%8 = alloca %struct.TYPE_13__
%9 = alloca %struct.TYPE_13__
%10 = alloca i32
%11 = alloca i16
%12 = alloca i8
%13 = bitcast %struct.TYPE_12__** %4 to i8*
%14 = bitcast i64* %5 to i8*
%15 = bitcast i64* %6 to i8*
%16 = bitcast [1 x %struct.TYPE_14__]* %7 to i8*
%17 = bitcast %struct.TYPE_13__* %8 to i8*
%18 = bitcast %struct.TYPE_13__* %9 to i8*
%19 = tail call i32 @XtClass(i32* %0)
%20 = call i32 @XtGetResourceList(i32 %19, %struct.TYPE_12__** %4, i64* %5)
%21 = load i64, i64* %5
%22 = icmp eq i64 %21, 0
br i1 %22, label %41, label %23
23: ; preds = %3
%24 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 1
br label %25
25: ; preds = %23, %33
%26 = phi i64 [ 0, %23 ], [ %34, %33 ]
%27 = load %struct.TYPE_12__*, %struct.TYPE_12__** %4
%28 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %27, i64 %26, i32 2
%29 = load i32, i32* %28
%30 = load i32, i32* %24
%31 = call i64 @strcmp(i32 %29, i32 %30)
%32 = icmp eq i64 %31, 0
br i1 %32, label %37, label %33
33: ; preds = %25
%34 = add nuw i64 %26, 1
%35 = load i64, i64* %5
%36 = icmp ult i64 %34, %35
br i1 %36, label %25, label %41
37: ; preds = %25
%38 = load %struct.TYPE_12__*, %struct.TYPE_12__** %4
%39 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %38, i64 %26
%40 = icmp eq %struct.TYPE_12__* %38, null
br i1 %40, label %41, label %78
41: ; preds = %33, %3, %37
%42 = call i32* @XtParent(i32* %0)
%43 = icmp eq i32* %42, null
br i1 %43, label %71, label %44
44: ; preds = %41
%45 = bitcast %struct.TYPE_12__** %4 to i8**
%46 = load i8*, i8** %45
%47 = call i32 @XtFree(i8* %46)
%48 = call i32* @XtParent(i32* %0)
%49 = call i32 @XtClass(i32* %48)
%50 = call i32 @XtGetConstraintResourceList(i32 %49, %struct.TYPE_12__** %4, i64* %5)
%51 = load i64, i64* %5
%52 = icmp eq i64 %51, 0
br i1 %52, label %71, label %53
53: ; preds = %44
%54 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 1
br label %55
55: ; preds = %53, %63
%56 = phi i64 [ 0, %53 ], [ %64, %63 ]
%57 = load %struct.TYPE_12__*, %struct.TYPE_12__** %4
%58 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %57, i64 %56, i32 2
%59 = load i32, i32* %58
%60 = load i32, i32* %54
%61 = call i64 @strcmp(i32 %59, i32 %60)
%62 = icmp eq i64 %61, 0
br i1 %62, label %67, label %63
63: ; preds = %55
%64 = add nuw i64 %56, 1
%65 = load i64, i64* %5
%66 = icmp ult i64 %64, %65
br i1 %66, label %55, label %71
67: ; preds = %55
%68 = load %struct.TYPE_12__*, %struct.TYPE_12__** %4
%69 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %68, i64 %56
%70 = icmp eq %struct.TYPE_12__* %68, null
br i1 %70, label %71, label %78
71: ; preds = %63, %41, %44, %67
%72 = bitcast %struct.TYPE_12__** %4 to i8**
%73 = load i8*, i8** %72
%74 = call i32 @XtFree(i8* %73)
%75 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 0
%76 = load i64, i64* %75
%77 = inttoptr i64 %76 to i32**
store i32* null, i32** %77
br label %165
78: ; preds = %37, %67
%79 = phi %struct.TYPE_12__* [ %69, %67 ], [ %39, %37 ]
%80 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %79, i64 0, i32 0
%81 = load i32, i32* %80
switch i32 %81, label %106 [
i32 1, label %82
i32 2, label %90
i32 4, label %98
]
82: ; preds = %78
%83 = getelementptr inbounds [1 x %struct.TYPE_14__], [1 x %struct.TYPE_14__]* %7, i64 0, i64 0
%84 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %79, i64 0, i32 2
%85 = load i32, i32* %84
%86 = call i32 (i64, i32, i32, ...) @XtSetArg(i64 undef, i32 undef, i32 %85, i8* %12)
%87 = call i32 @XtGetValues(i32* %0, %struct.TYPE_14__* %83, i32 1)
%88 = load i8, i8* %12
%89 = sext i8 %88 to i64
store i64 %89, i64* %6
br label %115
90: ; preds = %78
%91 = getelementptr inbounds [1 x %struct.TYPE_14__], [1 x %struct.TYPE_14__]* %7, i64 0, i64 0
%92 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %79, i64 0, i32 2
%93 = load i32, i32* %92
%94 = call i32 (i64, i32, i32, ...) @XtSetArg(i64 undef, i32 undef, i32 %93, i16* %11)
%95 = call i32 @XtGetValues(i32* %0, %struct.TYPE_14__* %91, i32 1)
%96 = load i16, i16* %11
%97 = sext i16 %96 to i64
store i64 %97, i64* %6
br label %115
98: ; preds = %78
%99 = getelementptr inbounds [1 x %struct.TYPE_14__], [1 x %struct.TYPE_14__]* %7, i64 0, i64 0
%100 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %79, i64 0, i32 2
%101 = load i32, i32* %100
%102 = call i32 (i64, i32, i32, ...) @XtSetArg(i64 undef, i32 undef, i32 %101, i32* %10)
%103 = call i32 @XtGetValues(i32* %0, %struct.TYPE_14__* %99, i32 1)
%104 = load i32, i32* %10
%105 = sext i32 %104 to i64
store i64 %105, i64* %6
br label %115
106: ; preds = %78
%107 = load i32, i32* @stderr
%108 = call i32 @fprintf(i32 %107, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.1, i64 0, i64 0), i32 %81)
%109 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 0
%110 = load i64, i64* %109
%111 = inttoptr i64 %110 to i8**
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i8** %111
%112 = bitcast %struct.TYPE_12__** %4 to i8**
%113 = load i8*, i8** %112
%114 = call i32 @XtFree(i8* %113)
br label %165
115: ; preds = %98, %90, %82
%116 = phi i64 [ %105, %98 ], [ %97, %90 ], [ %89, %82 ]
%117 = load i32, i32* @XtRString
%118 = getelementptr inbounds %struct.TYPE_12__, %struct.TYPE_12__* %79, i64 0, i32 1
%119 = load i32, i32* %118
%120 = call i64 @strcmp(i32 %117, i32 %119)
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %126
122: ; preds = %115
%123 = icmp eq i64 %116, 0
br i1 %123, label %155, label %124
124: ; preds = %122
%125 = inttoptr i64 %116 to i8*
br label %155
126: ; preds = %115
%127 = load i32, i32* %80
%128 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %9, i64 0, i32 0
store i32 %127, i32* %128
%129 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %9, i64 0, i32 1
%130 = bitcast i8** %129 to i64**
store i64* %6, i64** %130
%131 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %8, i64 0, i32 1
store i8* null, i8** %131
%132 = getelementptr inbounds %struct.TYPE_13__, %struct.TYPE_13__* %8, i64 0, i32 0
store i32 0, i32* %132
%133 = load i32, i32* %118
%134 = load i32, i32* @XtRString
%135 = call i64 @XtConvertAndStore(i32* %0, i32 %133, %struct.TYPE_13__* %9, i32 %134, %struct.TYPE_13__* %8)
%136 = icmp eq i64 %135, 0
br i1 %136, label %139, label %137
137: ; preds = %126
%138 = load i8*, i8** %131
br label %155
139: ; preds = %126
%140 = load i32, i32* %80
switch i32 %140, label %155 [
i32 1, label %141
i32 2, label %146
i32 4, label %151
]
141: ; preds = %139
%142 = load i64, i64* %6
%143 = trunc i64 %142 to i32
%144 = and i32 %143, 255
%145 = call i32 @XmuSnprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %144)
br label %155
146: ; preds = %139
%147 = load i64, i64* %6
%148 = trunc i64 %147 to i32
%149 = and i32 %148, 65535
%150 = call i32 @XmuSnprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %149)
br label %155
151: ; preds = %139
%152 = load i64, i64* %6
%153 = trunc i64 %152 to i32
%154 = call i32 @XmuSnprintf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), i32 32, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0), i32 %153)
br label %155
155: ; preds = %122, %137, %139, %151, %146, %141, %124
%156 = phi i8* [ %125, %124 ], [ %138, %137 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), %139 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), %151 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), %146 ], [ getelementptr inbounds ([32 x i8], [32 x i8]* @_XEditresGetStringValues.buffer, i64 0, i64 0), %141 ], [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0), %122 ]
%157 = icmp eq i8* %156, null
%158 = select i1 %157, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %156
%159 = getelementptr inbounds %struct.TYPE_14__, %struct.TYPE_14__* %1, i64 0, i32 0
%160 = load i64, i64* %159
%161 = inttoptr i64 %160 to i8**
store i8* %158, i8** %161
%162 = bitcast %struct.TYPE_12__** %4 to i8**
%163 = load i8*, i8** %162
%164 = call i32 @XtFree(i8* %163)
br label %165
165: ; preds = %155, %106, %71
ret void
}