#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 */

/* Type definitions */

/* Variables and functions */
char *malloc(size_t);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, size_t);
int /*<<< orphan*/ sprintf(char *, char *, char const *, char const *,
                           char const *, char const *, char const *,
                           char const *, char const *, char const *,
                           char const *, char const *, char const *,
                           char const *, char const *, char const *,
                           char const *, char const *);
int strlen(char const *);
char *dlna_dms_description_get(
    const char *friendly_name, const char *manufacturer,
    const char *manufacturer_url, const char *model_description,
    const char *model_name, const char *model_number, const char *model_url,
    const char *serial_number, const char *uuid, const char *presentation_url,
    const char *cms_scpd_url, const char *cms_control_url,
    const char *cms_event_url, const char *cds_scpd_url,
    const char *cds_control_url, const char *cds_event_url) {
  char *desc = NULL;
  size_t len;
  if (!friendly_name || !manufacturer || !manufacturer_url ||
      !model_description || !model_name || !model_number || !model_url ||
      !serial_number || !uuid || !presentation_url || !cms_scpd_url ||
      !cms_control_url || !cms_event_url || !cds_scpd_url || !cds_control_url ||
      !cds_event_url)
    return NULL;
  len = strlen(
            "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
            "<root xmlns=\"urn:schemas-upnp-org:device-1-0\">"
            "  <specVersion>"
            "    <major>1</major>"
            "    <minor>0</minor>"
            "  </specVersion>"
            "  <device>"
            "    "
            "<deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>"
            "    <friendlyName>%s: 1</friendlyName>"
            "    <manufacturer>%s</manufacturer>"
            "    <manufacturerURL>%s</manufacturerURL>"
            "    <modelDescription>%s</modelDescription>"
            "    <modelName>%s</modelName>"
            "    <modelNumber>%s</modelNumber>"
            "    <modelURL>%s</modelURL>"
            "    <serialNumber>%s</serialNumber>"
            "    <UDN>uuid:%s</UDN>"
            "    <presentationURL>%s</presentationURL>"
            "    <dlna:X_DLNADOC>DMS-1.00</dlna:X_DLNADOC>"
            "    <serviceList>"
            "      <service>"
            "        "
            "<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</"
            "serviceType>"
            "        "
            "<serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>"
            "        <SCPDURL>%s</SCPDURL>"
            "        <controlURL>%s</controlURL>"
            "        <eventSubURL>%s</eventSubURL>"
            "      </service>"
            "      <service>"
            "        "
            "<serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</"
            "serviceType>"
            "        "
            "<serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId>"
            "        <SCPDURL>%s</SCPDURL>"
            "        <controlURL>%s</controlURL>"
            "        <eventSubURL>%s</eventSubURL>"
            "      </service>"
            "    </serviceList>"
            "  </device>"
            "</root>") +
        strlen(friendly_name) + strlen(manufacturer) +
        strlen(manufacturer_url) + strlen(model_description) +
        strlen(model_name) + strlen(model_number) + strlen(model_url) +
        strlen(serial_number) + strlen(uuid) + strlen(presentation_url) +
        strlen(cms_scpd_url) + strlen(cms_control_url) + strlen(cms_event_url) +
        strlen(cds_scpd_url) + strlen(cds_control_url) + strlen(cds_event_url) +
        1;
  desc = malloc(len);
  memset(desc, 0, len);
  sprintf(
      desc,
      "<?xml version=\"1.0\" encoding=\"utf-8\"?>"
      "<root xmlns=\"urn:schemas-upnp-org:device-1-0\">"
      "  <specVersion>"
      "    <major>1</major>"
      "    <minor>0</minor>"
      "  </specVersion>"
      "  <device>"
      "    <deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>"
      "    <friendlyName>%s: 1</friendlyName>"
      "    <manufacturer>%s</manufacturer>"
      "    <manufacturerURL>%s</manufacturerURL>"
      "    <modelDescription>%s</modelDescription>"
      "    <modelName>%s</modelName>"
      "    <modelNumber>%s</modelNumber>"
      "    <modelURL>%s</modelURL>"
      "    <serialNumber>%s</serialNumber>"
      "    <UDN>uuid:%s</UDN>"
      "    <presentationURL>%s</presentationURL>"
      "    <dlna:X_DLNADOC>DMS-1.00</dlna:X_DLNADOC>"
      "    <serviceList>"
      "      <service>"
      "        "
      "<serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</"
      "serviceType>"
      "        <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>"
      "        <SCPDURL>%s</SCPDURL>"
      "        <controlURL>%s</controlURL>"
      "        <eventSubURL>%s</eventSubURL>"
      "      </service>"
      "      <service>"
      "        "
      "<serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</"
      "serviceType>"
      "        <serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId>"
      "        <SCPDURL>%s</SCPDURL>"
      "        <controlURL>%s</controlURL>"
      "        <eventSubURL>%s</eventSubURL>"
      "      </service>"
      "    </serviceList>"
      "  </device>"
      "</root>",
      friendly_name, manufacturer, manufacturer_url, model_description,
      model_name, model_number, model_url, serial_number, uuid,
      presentation_url, cms_scpd_url, cms_control_url, cms_event_url,
      cds_scpd_url, cds_control_url, cds_event_url);
  return desc;
}


x86 assembly (clang, -O0):
<dlna_dms_description_get>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    0x58(%rbp),%rax
mov    0x50(%rbp),%rax
mov    0x48(%rbp),%rax
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x38(%rbp)
mov    %rsi,-0x40(%rbp)
mov    %rdx,-0x48(%rbp)
mov    %rcx,-0x50(%rbp)
mov    %r8,-0x58(%rbp)
mov    %r9,-0x60(%rbp)
movq   $0x0,-0x68(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,-0x40(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,-0x48(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,-0x50(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,-0x58(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,-0x60(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x10(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x18(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x20(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x28(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x30(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x38(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x40(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x48(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x50(%rbp)
je     124c <dlna_dms_description_get+0x10c>
cmpq   $0x0,0x58(%rbp)
jne    1259 <dlna_dms_description_get+0x119>
movq   $0x0,-0x30(%rbp)
jmp    14d9 <dlna_dms_description_get+0x399>
lea    0xda0(%rip),%rdi
call   1030 <strlen@plt>
mov    %eax,-0xd0(%rbp)
mov    -0x38(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xd0(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xcc(%rbp)
mov    -0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xcc(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xc8(%rbp)
mov    -0x48(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xc8(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xc4(%rbp)
mov    -0x50(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xc4(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xc0(%rbp)
mov    -0x58(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xc0(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xbc(%rbp)
mov    -0x60(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xbc(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xb8(%rbp)
mov    0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xb8(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xb4(%rbp)
mov    0x18(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xb4(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xb0(%rbp)
mov    0x20(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xb0(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xac(%rbp)
mov    0x28(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xac(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xa8(%rbp)
mov    0x30(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xa8(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xa4(%rbp)
mov    0x38(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xa4(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xa0(%rbp)
mov    0x40(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0xa0(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x9c(%rbp)
mov    0x48(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x9c(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x98(%rbp)
mov    0x50(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x98(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x94(%rbp)
mov    0x58(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x94(%rbp),%eax
add    %ecx,%eax
add    $0x1,%eax
cltq
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rdi
call   1050 <malloc@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rdi
mov    -0x70(%rbp),%rdx
xor    %esi,%esi
call   1040 <memset@plt>
mov    -0x68(%rbp),%rdi
mov    -0x38(%rbp),%rdx
mov    -0x40(%rbp),%rcx
mov    -0x48(%rbp),%r8
mov    -0x50(%rbp),%r9
mov    -0x58(%rbp),%rax
mov    -0x60(%rbp),%rsi
mov    %rsi,-0x90(%rbp)
mov    0x10(%rbp),%rsi
mov    %rsi,-0x88(%rbp)
mov    0x18(%rbp),%rsi
mov    %rsi,-0x80(%rbp)
mov    0x20(%rbp),%r13
mov    0x28(%rbp),%r12
mov    0x30(%rbp),%r15
mov    0x38(%rbp),%r14
mov    0x40(%rbp),%rbx
mov    0x48(%rbp),%r11
mov    0x50(%rbp),%r10
mov    0x58(%rbp),%rsi
mov    %rsi,-0x78(%rbp)
lea    0xb85(%rip),%rsi
mov    %rax,(%rsp)
mov    -0x90(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x88(%rbp),%rax
mov    %rax,0x10(%rsp)
mov    -0x80(%rbp),%rax
mov    %rax,0x18(%rsp)
mov    -0x78(%rbp),%rax
mov    %r13,0x20(%rsp)
mov    %r12,0x28(%rsp)
mov    %r15,0x30(%rsp)
mov    %r14,0x38(%rsp)
mov    %rbx,0x40(%rsp)
mov    %r11,0x48(%rsp)
mov    %r10,0x50(%rsp)
mov    %rax,0x58(%rsp)
call   1060 <sprintf@plt>
mov    -0x68(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<dlna_dms_description_get>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
xor    %eax,%eax
test   %rdi,%rdi
je     1416 <dlna_dms_description_get+0x2d6>
test   %rsi,%rsi
je     1416 <dlna_dms_description_get+0x2d6>
mov    %rdx,%r14
test   %rdx,%rdx
je     1416 <dlna_dms_description_get+0x2d6>
mov    %rcx,%r15
test   %rcx,%rcx
je     1416 <dlna_dms_description_get+0x2d6>
mov    %r8,%r13
test   %r8,%r8
je     1416 <dlna_dms_description_get+0x2d6>
mov    %r9,%r12
test   %r9,%r9
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xa0(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xa8(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xb0(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xb8(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xc0(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xc8(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xd0(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xd8(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xe0(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
cmpq   $0x0,0xe8(%rsp)
je     1416 <dlna_dms_description_get+0x2d6>
mov    %rdi,%rbx
lea    0xdce(%rip),%rdi
mov    %rsi,%rbp
mov    %rsi,0x58(%rsp)
call   1030 <strlen@plt>
mov    %eax,0x34(%rsp)
mov    %rbx,%rdi
call   1030 <strlen@plt>
mov    %rbx,0x60(%rsp)
mov    %eax,%ebx
mov    %rbp,%rdi
call   1030 <strlen@plt>
mov    %eax,0x30(%rsp)
mov    %r14,0x38(%rsp)
mov    %r14,%rdi
call   1030 <strlen@plt>
mov    %eax,0x2c(%rsp)
mov    %r15,%rdi
call   1030 <strlen@plt>
mov    %eax,0x28(%rsp)
mov    %r13,0x50(%rsp)
mov    %r13,%rdi
call   1030 <strlen@plt>
mov    %eax,0x24(%rsp)
mov    %r12,0x48(%rsp)
mov    %r12,%rdi
call   1030 <strlen@plt>
mov    %eax,0x20(%rsp)
mov    0xa0(%rsp),%rdi
call   1030 <strlen@plt>
mov    %eax,0x1c(%rsp)
mov    0xa8(%rsp),%rdi
call   1030 <strlen@plt>
mov    %eax,0x18(%rsp)
mov    0xb0(%rsp),%rdi
call   1030 <strlen@plt>
mov    %eax,0x14(%rsp)
mov    0xb8(%rsp),%rdi
call   1030 <strlen@plt>
mov    %eax,0x10(%rsp)
mov    0xc0(%rsp),%rdi
call   1030 <strlen@plt>
mov    %r15,0x40(%rsp)
mov    %eax,0xc(%rsp)
mov    0xc8(%rsp),%rdi
call   1030 <strlen@plt>
mov    %eax,%r13d
mov    0xd0(%rsp),%rdi
call   1030 <strlen@plt>
mov    %eax,%r15d
mov    0xd8(%rsp),%rdi
call   1030 <strlen@plt>
mov    %eax,%r14d
mov    0xe0(%rsp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ebp
mov    0xe8(%rsp),%r12
mov    %r12,%rdi
call   1030 <strlen@plt>
add    0x34(%rsp),%ebx
add    0x30(%rsp),%ebx
add    0x2c(%rsp),%ebx
add    0x28(%rsp),%ebx
add    0x24(%rsp),%ebx
add    0x20(%rsp),%ebx
add    0x1c(%rsp),%ebx
add    0x18(%rsp),%ebx
add    0x14(%rsp),%ebx
add    0x10(%rsp),%ebx
add    0xc(%rsp),%ebx
add    %r13d,%ebx
add    %r15d,%ebx
add    %r14d,%ebx
add    %ebp,%ebx
add    %ebx,%eax
add    $0x1,%eax
movslq %eax,%rbx
mov    %rbx,%rdi
call   1050 <malloc@plt>
mov    %rax,%rbp
mov    %rax,%rdi
xor    %esi,%esi
mov    %rbx,%rdx
call   1040 <memset@plt>
mov    %rbp,%rdi
lea    0xc59(%rip),%rsi
mov    0x60(%rsp),%rdx
mov    0x58(%rsp),%rcx
mov    0x38(%rsp),%r8
mov    0x40(%rsp),%r9
push   %r12
push   0xe8(%rsp)
push   0xe8(%rsp)
push   0xe8(%rsp)
push   0xe8(%rsp)
push   0xe8(%rsp)
push   0xe8(%rsp)
push   0xe8(%rsp)
push   0xe8(%rsp)
push   0xe8(%rsp)
push   0x98(%rsp)
push   0xa8(%rsp)
call   1060 <sprintf@plt>
mov    %rbp,%rax
add    $0x60,%rsp
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [1248 x i8] c"<?xml version=\221.0\22 encoding=\22utf-8\22?><root xmlns=\22urn:schemas-upnp-org:device-1-0\22> <specVersion> <major>1</major> <minor>0</minor> </specVersion> <device> <deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType> <friendlyName>%s: 1</friendlyName> <manufacturer>%s</manufacturer> <manufacturerURL>%s</manufacturerURL> <modelDescription>%s</modelDescription> <modelName>%s</modelName> <modelNumber>%s</modelNumber> <modelURL>%s</modelURL> <serialNumber>%s</serialNumber> <UDN>uuid:%s</UDN> <presentationURL>%s</presentationURL> <dlna:X_DLNADOC>DMS-1.00</dlna:X_DLNADOC> <serviceList> <service> <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType> <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId> <SCPDURL>%s</SCPDURL> <controlURL>%s</controlURL> <eventSubURL>%s</eventSubURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType> <serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId> <SCPDURL>%s</SCPDURL> <controlURL>%s</controlURL> <eventSubURL>%s</eventSubURL> </service> </serviceList> </device></root>\00"
define i8* @dlna_dms_description_get(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i8* %10, i8* %11, i8* %12, i8* %13, i8* %14, i8* %15) {
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca i8*
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca i8*
%25 = alloca i8*
%26 = alloca i8*
%27 = alloca i8*
%28 = alloca i8*
%29 = alloca i8*
%30 = alloca i8*
%31 = alloca i8*
%32 = alloca i8*
%33 = alloca i8*
%34 = alloca i8*
%35 = alloca i64
store i8* %0, i8** %18
store i8* %1, i8** %19
store i8* %2, i8** %20
store i8* %3, i8** %21
store i8* %4, i8** %22
store i8* %5, i8** %23
store i8* %6, i8** %24
store i8* %7, i8** %25
store i8* %8, i8** %26
store i8* %9, i8** %27
store i8* %10, i8** %28
store i8* %11, i8** %29
store i8* %12, i8** %30
store i8* %13, i8** %31
store i8* %14, i8** %32
store i8* %15, i8** %33
store i8* null, i8** %34
%36 = load i8*, i8** %18
%37 = icmp ne i8* %36, null
br i1 %37, label %38, label %83
38: ; preds = %16
%39 = load i8*, i8** %19
%40 = icmp ne i8* %39, null
br i1 %40, label %41, label %83
41: ; preds = %38
%42 = load i8*, i8** %20
%43 = icmp ne i8* %42, null
br i1 %43, label %44, label %83
44: ; preds = %41
%45 = load i8*, i8** %21
%46 = icmp ne i8* %45, null
br i1 %46, label %47, label %83
47: ; preds = %44
%48 = load i8*, i8** %22
%49 = icmp ne i8* %48, null
br i1 %49, label %50, label %83
50: ; preds = %47
%51 = load i8*, i8** %23
%52 = icmp ne i8* %51, null
br i1 %52, label %53, label %83
53: ; preds = %50
%54 = load i8*, i8** %24
%55 = icmp ne i8* %54, null
br i1 %55, label %56, label %83
56: ; preds = %53
%57 = load i8*, i8** %25
%58 = icmp ne i8* %57, null
br i1 %58, label %59, label %83
59: ; preds = %56
%60 = load i8*, i8** %26
%61 = icmp ne i8* %60, null
br i1 %61, label %62, label %83
62: ; preds = %59
%63 = load i8*, i8** %27
%64 = icmp ne i8* %63, null
br i1 %64, label %65, label %83
65: ; preds = %62
%66 = load i8*, i8** %28
%67 = icmp ne i8* %66, null
br i1 %67, label %68, label %83
68: ; preds = %65
%69 = load i8*, i8** %29
%70 = icmp ne i8* %69, null
br i1 %70, label %71, label %83
71: ; preds = %68
%72 = load i8*, i8** %30
%73 = icmp ne i8* %72, null
br i1 %73, label %74, label %83
74: ; preds = %71
%75 = load i8*, i8** %31
%76 = icmp ne i8* %75, null
br i1 %76, label %77, label %83
77: ; preds = %74
%78 = load i8*, i8** %32
%79 = icmp ne i8* %78, null
br i1 %79, label %80, label %83
80: ; preds = %77
%81 = load i8*, i8** %33
%82 = icmp ne i8* %81, null
br i1 %82, label %84, label %83
83: ; preds = %80, %77, %74, %71, %68, %65, %62, %59, %56, %53, %50, %47, %44, %41, %38, %16
store i8* null, i8** %17
br label %160
84: ; preds = %80
%85 = call i32 @strlen(i8* getelementptr inbounds ([1248 x i8], [1248 x i8]* @.str, i64 0, i64 0))
%86 = load i8*, i8** %18
%87 = call i32 @strlen(i8* %86)
%88 = add nsw i32 %85, %87
%89 = load i8*, i8** %19
%90 = call i32 @strlen(i8* %89)
%91 = add nsw i32 %88, %90
%92 = load i8*, i8** %20
%93 = call i32 @strlen(i8* %92)
%94 = add nsw i32 %91, %93
%95 = load i8*, i8** %21
%96 = call i32 @strlen(i8* %95)
%97 = add nsw i32 %94, %96
%98 = load i8*, i8** %22
%99 = call i32 @strlen(i8* %98)
%100 = add nsw i32 %97, %99
%101 = load i8*, i8** %23
%102 = call i32 @strlen(i8* %101)
%103 = add nsw i32 %100, %102
%104 = load i8*, i8** %24
%105 = call i32 @strlen(i8* %104)
%106 = add nsw i32 %103, %105
%107 = load i8*, i8** %25
%108 = call i32 @strlen(i8* %107)
%109 = add nsw i32 %106, %108
%110 = load i8*, i8** %26
%111 = call i32 @strlen(i8* %110)
%112 = add nsw i32 %109, %111
%113 = load i8*, i8** %27
%114 = call i32 @strlen(i8* %113)
%115 = add nsw i32 %112, %114
%116 = load i8*, i8** %28
%117 = call i32 @strlen(i8* %116)
%118 = add nsw i32 %115, %117
%119 = load i8*, i8** %29
%120 = call i32 @strlen(i8* %119)
%121 = add nsw i32 %118, %120
%122 = load i8*, i8** %30
%123 = call i32 @strlen(i8* %122)
%124 = add nsw i32 %121, %123
%125 = load i8*, i8** %31
%126 = call i32 @strlen(i8* %125)
%127 = add nsw i32 %124, %126
%128 = load i8*, i8** %32
%129 = call i32 @strlen(i8* %128)
%130 = add nsw i32 %127, %129
%131 = load i8*, i8** %33
%132 = call i32 @strlen(i8* %131)
%133 = add nsw i32 %130, %132
%134 = add nsw i32 %133, 1
%135 = sext i32 %134 to i64
store i64 %135, i64* %35
%136 = load i64, i64* %35
%137 = call i8* @malloc(i64 %136)
store i8* %137, i8** %34
%138 = load i8*, i8** %34
%139 = load i64, i64* %35
%140 = call i32 @memset(i8* %138, i32 0, i64 %139)
%141 = load i8*, i8** %34
%142 = load i8*, i8** %18
%143 = load i8*, i8** %19
%144 = load i8*, i8** %20
%145 = load i8*, i8** %21
%146 = load i8*, i8** %22
%147 = load i8*, i8** %23
%148 = load i8*, i8** %24
%149 = load i8*, i8** %25
%150 = load i8*, i8** %26
%151 = load i8*, i8** %27
%152 = load i8*, i8** %28
%153 = load i8*, i8** %29
%154 = load i8*, i8** %30
%155 = load i8*, i8** %31
%156 = load i8*, i8** %32
%157 = load i8*, i8** %33
%158 = call i32 @sprintf(i8* %141, i8* getelementptr inbounds ([1248 x i8], [1248 x i8]* @.str, i64 0, i64 0), i8* %142, i8* %143, i8* %144, i8* %145, i8* %146, i8* %147, i8* %148, i8* %149, i8* %150, i8* %151, i8* %152, i8* %153, i8* %154, i8* %155, i8* %156, i8* %157)
%159 = load i8*, i8** %34
store i8* %159, i8** %17
br label %160
160: ; preds = %84, %83
%161 = load i8*, i8** %17
ret i8* %161
}

LLVM IR (-O2):
@.str = [1248 x i8] c"<?xml version=\221.0\22 encoding=\22utf-8\22?><root xmlns=\22urn:schemas-upnp-org:device-1-0\22> <specVersion> <major>1</major> <minor>0</minor> </specVersion> <device> <deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType> <friendlyName>%s: 1</friendlyName> <manufacturer>%s</manufacturer> <manufacturerURL>%s</manufacturerURL> <modelDescription>%s</modelDescription> <modelName>%s</modelName> <modelNumber>%s</modelNumber> <modelURL>%s</modelURL> <serialNumber>%s</serialNumber> <UDN>uuid:%s</UDN> <presentationURL>%s</presentationURL> <dlna:X_DLNADOC>DMS-1.00</dlna:X_DLNADOC> <serviceList> <service> <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType> <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId> <SCPDURL>%s</SCPDURL> <controlURL>%s</controlURL> <eventSubURL>%s</eventSubURL> </service> <service> <serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType> <serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId> <SCPDURL>%s</SCPDURL> <controlURL>%s</controlURL> <eventSubURL>%s</eventSubURL> </service> </serviceList> </device></root>\00"
define i8* @dlna_dms_description_get(i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i8* %10, i8* %11, i8* %12, i8* %13, i8* %14, i8* %15) {
%17 = icmp ne i8* %0, null
%18 = icmp ne i8* %1, null
%19 = and i1 %17, %18
%20 = icmp ne i8* %2, null
%21 = and i1 %19, %20
%22 = icmp ne i8* %3, null
%23 = and i1 %21, %22
%24 = icmp ne i8* %4, null
%25 = and i1 %23, %24
%26 = icmp ne i8* %5, null
%27 = and i1 %25, %26
%28 = icmp ne i8* %6, null
%29 = and i1 %27, %28
%30 = icmp ne i8* %7, null
%31 = and i1 %29, %30
%32 = icmp ne i8* %8, null
%33 = and i1 %31, %32
%34 = icmp ne i8* %9, null
%35 = and i1 %33, %34
%36 = icmp ne i8* %10, null
%37 = and i1 %35, %36
%38 = icmp ne i8* %11, null
%39 = and i1 %37, %38
%40 = icmp ne i8* %12, null
%41 = and i1 %39, %40
%42 = icmp ne i8* %13, null
%43 = and i1 %41, %42
%44 = icmp ne i8* %14, null
%45 = and i1 %43, %44
%46 = icmp ne i8* %15, null
%47 = and i1 %45, %46
br i1 %47, label %48, label %87
48: ; preds = %16
%49 = tail call i32 @strlen(i8* getelementptr inbounds ([1248 x i8], [1248 x i8]* @.str, i64 0, i64 0))
%50 = tail call i32 @strlen(i8* %0)
%51 = tail call i32 @strlen(i8* %1)
%52 = tail call i32 @strlen(i8* %2)
%53 = tail call i32 @strlen(i8* %3)
%54 = tail call i32 @strlen(i8* %4)
%55 = tail call i32 @strlen(i8* %5)
%56 = tail call i32 @strlen(i8* %6)
%57 = tail call i32 @strlen(i8* %7)
%58 = tail call i32 @strlen(i8* %8)
%59 = tail call i32 @strlen(i8* %9)
%60 = tail call i32 @strlen(i8* %10)
%61 = tail call i32 @strlen(i8* %11)
%62 = tail call i32 @strlen(i8* %12)
%63 = tail call i32 @strlen(i8* %13)
%64 = tail call i32 @strlen(i8* %14)
%65 = tail call i32 @strlen(i8* %15)
%66 = add i32 %49, 1
%67 = add i32 %66, %50
%68 = add i32 %67, %51
%69 = add i32 %68, %52
%70 = add i32 %69, %53
%71 = add i32 %70, %54
%72 = add i32 %71, %55
%73 = add i32 %72, %56
%74 = add i32 %73, %57
%75 = add i32 %74, %58
%76 = add i32 %75, %59
%77 = add i32 %76, %60
%78 = add i32 %77, %61
%79 = add i32 %78, %62
%80 = add i32 %79, %63
%81 = add i32 %80, %64
%82 = add i32 %81, %65
%83 = sext i32 %82 to i64
%84 = tail call i8* @malloc(i64 %83)
%85 = tail call i32 @memset(i8* %84, i32 0, i64 %83)
%86 = tail call i32 @sprintf(i8* dereferenceable(1) %84, i8* dereferenceable(1) getelementptr inbounds ([1248 x i8], [1248 x i8]* @.str, i64 0, i64 0), i8* %0, i8* %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9, i8* %10, i8* %11, i8* %12, i8* %13, i8* %14, i8* %15)
br label %87
87: ; preds = %16, %48
%88 = phi i8* [ %84, %48 ], [ null, %16 ]
ret i8* %88
}