void FormatError1(char *a_, unsigned int _a_high, unsigned char *w_,
                  unsigned int _w_high) {
  typedef struct _T3_a _T3;
  struct _T3_a {
    char array[(1024 * 8) + 1];
  };
  _T3 s;
  char a[_a_high + 1];
  unsigned char w[_w_high + 1];
  memcpy(a, a_, _a_high + 1);
  memcpy(w, w_, _w_high + 1);
  StringFormat1((char *)&s.array[0], (1024 * 8), (char *)a, _a_high,
                (unsigned char *)w, _w_high);
  FormatError((char *)&s.array[0], (1024 * 8));
}


x86 assembly (clang, -O0):
<FormatError1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2050,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %rsp,%rcx
mov    %rcx,-0x2028(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x2048(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x2030(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x2040(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x2038(%rbp)
mov    -0x8(%rbp),%rsi
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
mov    %eax,%edx
call   1040 <memcpy@plt>
mov    -0x2040(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,%eax
mov    %eax,%edx
call   1040 <memcpy@plt>
mov    -0x2048(%rbp),%rdx
mov    -0x2040(%rbp),%r8
lea    -0x2020(%rbp),%rdi
mov    -0xc(%rbp),%ecx
mov    -0x1c(%rbp),%r9d
mov    $0x2000,%esi
mov    $0x0,%al
call   1050 <StringFormat1@plt>
lea    -0x2020(%rbp),%rdi
mov    $0x2000,%esi
mov    $0x0,%al
call   1030 <FormatError@plt>
mov    -0x2028(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FormatError1>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2018,%rsp
mov    %ecx,%r14d
mov    %rdx,-0x30(%rbp)
mov    %esi,%r12d
mov    %rdi,%rsi
mov    %rsp,-0x38(%rbp)
lea    0x1(%r12),%edx
mov    %rsp,%rbx
lea    0xf(%rdx),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
lea    0x1(%r14),%r13d
mov    %rsp,%r15
lea    0xf(%r13),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r15
mov    %r15,%rsp
mov    %rbx,%rdi
call   1040 <memcpy@plt>
mov    %r15,%rdi
mov    -0x30(%rbp),%rsi
mov    %r13,%rdx
call   1040 <memcpy@plt>
lea    -0x2040(%rbp),%r13
mov    %r13,%rdi
mov    $0x2000,%esi
mov    %rbx,%rdx
mov    %r12d,%ecx
mov    %r15,%r8
mov    %r14d,%r9d
xor    %eax,%eax
call   1050 <StringFormat1@plt>
mov    %r13,%rdi
mov    $0x2000,%esi
xor    %eax,%eax
call   1030 <FormatError@plt>
mov    -0x38(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct._T3_a = type { [8193 x i8] }
define void @FormatError1(i8* %0, i32 %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca %struct._T3_a
%10 = alloca i8*
%11 = alloca i64
%12 = alloca i64
store i8* %0, i8** %5
store i32 %1, i32* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%13 = load i32, i32* %6
%14 = add i32 %13, 1
%15 = zext i32 %14 to i64
%16 = call i8* @llvm.stacksave()
store i8* %16, i8** %10
%17 = alloca i8, i64 %15
store i64 %15, i64* %11
%18 = load i32, i32* %8
%19 = add i32 %18, 1
%20 = zext i32 %19 to i64
%21 = alloca i8, i64 %20
store i64 %20, i64* %12
%22 = load i8*, i8** %5
%23 = load i32, i32* %6
%24 = add i32 %23, 1
%25 = zext i32 %24 to i64
%26 = load i8*, i8** %7
%27 = load i32, i32* %8
%28 = add i32 %27, 1
%29 = zext i32 %28 to i64
%30 = getelementptr inbounds %struct._T3_a, %struct._T3_a* %9, i32 0, i32 0
%31 = getelementptr inbounds [8193 x i8], [8193 x i8]* %30, i64 0, i64 0
%32 = load i32, i32* %6
%33 = load i32, i32* %8
%34 = call i32 (i8*, i32, i8*, i32, i8*, i32, ...) bitcast (i32 (...)* @StringFormat1 to i32 (i8*, i32, i8*, i32, i8*, i32, ...)*)(i8* %31, i32 8192, i8* %17, i32 %32, i8* %21, i32 %33)
%35 = getelementptr inbounds %struct._T3_a, %struct._T3_a* %9, i32 0, i32 0
%36 = getelementptr inbounds [8193 x i8], [8193 x i8]* %35, i64 0, i64 0
%37 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @FormatError to i32 (i8*, i32, ...)*)(i8* %36, i32 8192)
%38 = load i8*, i8** %10
ret void
}

LLVM IR (-O2):
%struct._T3_a = type { [8193 x i8] }
define void @FormatError1(i8* nocapture %0, i32 %1, i8* nocapture %2, i32 %3) {
%5 = alloca %struct._T3_a
%6 = getelementptr inbounds %struct._T3_a, %struct._T3_a* %5, i64 0, i32 0, i64 0
%7 = add i32 %1, 1
%8 = zext i32 %7 to i64
%9 = tail call i8* @llvm.stacksave()
%10 = alloca i8, i64 %8
%11 = add i32 %3, 1
%12 = zext i32 %11 to i64
%13 = alloca i8, i64 %12
%14 = call i32 (i8*, i32, i8*, i32, i8*, i32, ...) bitcast (i32 (...)* @StringFormat1 to i32 (i8*, i32, i8*, i32, i8*, i32, ...)*)(i8* %6, i32 8192, i8* %10, i32 %1, i8* %13, i32 %3)
%15 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @FormatError to i32 (i8*, i32, ...)*)(i8* %6, i32 8192)
ret void
}