#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 */
typedef int /*<<< orphan*/ __m128i;

/* Variables and functions */
int /*<<< orphan*/ highbd_transpose8x8_sse2(
    int /*<<< orphan*/ *, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
    int /*<<< orphan*/ *, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
    int /*<<< orphan*/ *, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
    int /*<<< orphan*/ *, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
    int /*<<< orphan*/ *, int /*<<< orphan*/ *, int /*<<< orphan*/ *,
    int /*<<< orphan*/ *);
void highbd_transpose8x16_sse2(__m128i *x0, __m128i *x1, __m128i *x2,
                               __m128i *x3, __m128i *x4, __m128i *x5,
                               __m128i *x6, __m128i *x7, __m128i *d0,
                               __m128i *d1, __m128i *d2, __m128i *d3,
                               __m128i *d4, __m128i *d5, __m128i *d6,
                               __m128i *d7) {
  highbd_transpose8x8_sse2(x0, x1, x2, x3, x4, x5, x6, x7, d0, d1, d2, d3, d4,
                           d5, d6, d7);
  highbd_transpose8x8_sse2(x0 + 1, x1 + 1, x2 + 1, x3 + 1, x4 + 1, x5 + 1,
                           x6 + 1, x7 + 1, d0 + 1, d1 + 1, d2 + 1, d3 + 1,
                           d4 + 1, d5 + 1, d6 + 1, d7 + 1);
}


x86 assembly (clang, -O0):
<highbd_transpose8x16_sse2>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xb8,%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,-0x30(%rbp)
mov    %rsi,-0x38(%rbp)
mov    %rdx,-0x40(%rbp)
mov    %rcx,-0x48(%rbp)
mov    %r8,-0x50(%rbp)
mov    %r9,-0x58(%rbp)
mov    -0x30(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x48(%rbp),%rcx
mov    -0x50(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    0x10(%rbp),%rax
mov    %rax,-0x88(%rbp)
mov    0x18(%rbp),%rax
mov    %rax,-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),%rax
mov    %rax,-0x78(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x80(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x78(%rbp),%rax
mov    %r13,0x10(%rsp)
mov    %r12,0x18(%rsp)
mov    %r15,0x20(%rsp)
mov    %r14,0x28(%rsp)
mov    %rbx,0x30(%rsp)
mov    %r11,0x38(%rsp)
mov    %r10,0x40(%rsp)
mov    %rax,0x48(%rsp)
call   1030 <highbd_transpose8x8_sse2@plt>
mov    -0x30(%rbp),%rdi
add    $0x4,%rdi
mov    -0x38(%rbp),%rsi
add    $0x4,%rsi
mov    -0x40(%rbp),%rdx
add    $0x4,%rdx
mov    -0x48(%rbp),%rcx
add    $0x4,%rcx
mov    -0x50(%rbp),%r8
add    $0x4,%r8
mov    -0x58(%rbp),%r9
add    $0x4,%r9
mov    0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x70(%rbp)
mov    0x18(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x68(%rbp)
mov    0x20(%rbp),%r13
add    $0x4,%r13
mov    0x28(%rbp),%r12
add    $0x4,%r12
mov    0x30(%rbp),%r15
add    $0x4,%r15
mov    0x38(%rbp),%r14
add    $0x4,%r14
mov    0x40(%rbp),%rbx
add    $0x4,%rbx
mov    0x48(%rbp),%r11
add    $0x4,%r11
mov    0x50(%rbp),%r10
add    $0x4,%r10
mov    0x58(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x60(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,(%rsp)
mov    -0x68(%rbp),%rax
mov    %rax,0x8(%rsp)
mov    -0x60(%rbp),%rax
mov    %r13,0x10(%rsp)
mov    %r12,0x18(%rsp)
mov    %r15,0x20(%rsp)
mov    %r14,0x28(%rsp)
mov    %rbx,0x30(%rsp)
mov    %r11,0x38(%rsp)
mov    %r10,0x40(%rsp)
mov    %rax,0x48(%rsp)
call   1030 <highbd_transpose8x8_sse2@plt>
add    $0xb8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<highbd_transpose8x16_sse2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9,0x10(%rsp)
mov    %r8,0x8(%rsp)
mov    %rcx,0x20(%rsp)
mov    %rdx,0x18(%rsp)
mov    %rdi,%r15
mov    0x60(%rsp),%r10
mov    0x70(%rsp),%rbx
mov    0xa0(%rsp),%r14
mov    0xa8(%rsp),%r12
mov    %rsi,%r13
push   %r12
push   %r14
push   0xa8(%rsp)
push   0xa8(%rsp)
push   0xa8(%rsp)
push   0xa8(%rsp)
push   0xa8(%rsp)
push   %rbx
push   0xa8(%rsp)
push   %r10
mov    %r10,%rbp
call   1030 <highbd_transpose8x8_sse2@plt>
add    $0x50,%rsp
add    $0x4,%r15
add    $0x4,%r13
mov    %r13,%rsi
mov    0x18(%rsp),%rdx
add    $0x4,%rdx
mov    0x20(%rsp),%rcx
add    $0x4,%rcx
mov    0x8(%rsp),%r8
add    $0x4,%r8
mov    0x10(%rsp),%r9
add    $0x4,%r9
add    $0x4,%rbp
mov    %rbp,0x10(%rsp)
mov    0x68(%rsp),%r11
add    $0x4,%r11
add    $0x4,%rbx
mov    %rbx,0x8(%rsp)
mov    0x78(%rsp),%rax
add    $0x4,%rax
mov    0x80(%rsp),%rbx
add    $0x4,%rbx
mov    0x88(%rsp),%r10
add    $0x4,%r10
mov    0x90(%rsp),%rbp
add    $0x4,%rbp
mov    0x98(%rsp),%r13
add    $0x4,%r13
add    $0x4,%r14
add    $0x4,%r12
mov    %r15,%rdi
push   %r12
push   %r14
push   %r13
push   %rbp
push   %r10
push   %rbx
push   %rax
push   0x40(%rsp)
push   %r11
push   0x58(%rsp)
call   1030 <highbd_transpose8x8_sse2@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @highbd_transpose8x16_sse2(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15) {
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32*
%20 = alloca i32*
%21 = alloca i32*
%22 = alloca i32*
%23 = alloca i32*
%24 = alloca i32*
%25 = alloca i32*
%26 = alloca i32*
%27 = alloca i32*
%28 = alloca i32*
%29 = alloca i32*
%30 = alloca i32*
%31 = alloca i32*
%32 = alloca i32*
store i32* %0, i32** %17
store i32* %1, i32** %18
store i32* %2, i32** %19
store i32* %3, i32** %20
store i32* %4, i32** %21
store i32* %5, i32** %22
store i32* %6, i32** %23
store i32* %7, i32** %24
store i32* %8, i32** %25
store i32* %9, i32** %26
store i32* %10, i32** %27
store i32* %11, i32** %28
store i32* %12, i32** %29
store i32* %13, i32** %30
store i32* %14, i32** %31
store i32* %15, i32** %32
%33 = load i32*, i32** %17
%34 = load i32*, i32** %18
%35 = load i32*, i32** %19
%36 = load i32*, i32** %20
%37 = load i32*, i32** %21
%38 = load i32*, i32** %22
%39 = load i32*, i32** %23
%40 = load i32*, i32** %24
%41 = load i32*, i32** %25
%42 = load i32*, i32** %26
%43 = load i32*, i32** %27
%44 = load i32*, i32** %28
%45 = load i32*, i32** %29
%46 = load i32*, i32** %30
%47 = load i32*, i32** %31
%48 = load i32*, i32** %32
%49 = call i32 @highbd_transpose8x8_sse2(i32* %33, i32* %34, i32* %35, i32* %36, i32* %37, i32* %38, i32* %39, i32* %40, i32* %41, i32* %42, i32* %43, i32* %44, i32* %45, i32* %46, i32* %47, i32* %48)
%50 = load i32*, i32** %17
%51 = getelementptr inbounds i32, i32* %50, i64 1
%52 = load i32*, i32** %18
%53 = getelementptr inbounds i32, i32* %52, i64 1
%54 = load i32*, i32** %19
%55 = getelementptr inbounds i32, i32* %54, i64 1
%56 = load i32*, i32** %20
%57 = getelementptr inbounds i32, i32* %56, i64 1
%58 = load i32*, i32** %21
%59 = getelementptr inbounds i32, i32* %58, i64 1
%60 = load i32*, i32** %22
%61 = getelementptr inbounds i32, i32* %60, i64 1
%62 = load i32*, i32** %23
%63 = getelementptr inbounds i32, i32* %62, i64 1
%64 = load i32*, i32** %24
%65 = getelementptr inbounds i32, i32* %64, i64 1
%66 = load i32*, i32** %25
%67 = getelementptr inbounds i32, i32* %66, i64 1
%68 = load i32*, i32** %26
%69 = getelementptr inbounds i32, i32* %68, i64 1
%70 = load i32*, i32** %27
%71 = getelementptr inbounds i32, i32* %70, i64 1
%72 = load i32*, i32** %28
%73 = getelementptr inbounds i32, i32* %72, i64 1
%74 = load i32*, i32** %29
%75 = getelementptr inbounds i32, i32* %74, i64 1
%76 = load i32*, i32** %30
%77 = getelementptr inbounds i32, i32* %76, i64 1
%78 = load i32*, i32** %31
%79 = getelementptr inbounds i32, i32* %78, i64 1
%80 = load i32*, i32** %32
%81 = getelementptr inbounds i32, i32* %80, i64 1
%82 = call i32 @highbd_transpose8x8_sse2(i32* %51, i32* %53, i32* %55, i32* %57, i32* %59, i32* %61, i32* %63, i32* %65, i32* %67, i32* %69, i32* %71, i32* %73, i32* %75, i32* %77, i32* %79, i32* %81)
ret void
}

LLVM IR (-O2):
define void @highbd_transpose8x16_sse2(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15) {
%17 = tail call i32 @highbd_transpose8x8_sse2(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15)
%18 = getelementptr inbounds i32, i32* %0, i64 1
%19 = getelementptr inbounds i32, i32* %1, i64 1
%20 = getelementptr inbounds i32, i32* %2, i64 1
%21 = getelementptr inbounds i32, i32* %3, i64 1
%22 = getelementptr inbounds i32, i32* %4, i64 1
%23 = getelementptr inbounds i32, i32* %5, i64 1
%24 = getelementptr inbounds i32, i32* %6, i64 1
%25 = getelementptr inbounds i32, i32* %7, i64 1
%26 = getelementptr inbounds i32, i32* %8, i64 1
%27 = getelementptr inbounds i32, i32* %9, i64 1
%28 = getelementptr inbounds i32, i32* %10, i64 1
%29 = getelementptr inbounds i32, i32* %11, i64 1
%30 = getelementptr inbounds i32, i32* %12, i64 1
%31 = getelementptr inbounds i32, i32* %13, i64 1
%32 = getelementptr inbounds i32, i32* %14, i64 1
%33 = getelementptr inbounds i32, i32* %15, i64 1
%34 = tail call i32 @highbd_transpose8x8_sse2(i32* %18, i32* %19, i32* %20, i32* %21, i32* %22, i32* %23, i32* %24, i32* %25, i32* %26, i32* %27, i32* %28, i32* %29, i32* %30, i32* %31, i32* %32, i32* %33)
ret void
}