#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 k_check_epi32_overflow_4(int /*<<< orphan*/ const *,
                             int /*<<< orphan*/ const *,
                             int /*<<< orphan*/ const *,
                             int /*<<< orphan*/ const *,
                             int /*<<< orphan*/ const *);
int k_check_epi32_overflow_16(const __m128i *preg0, const __m128i *preg1,
                              const __m128i *preg2, const __m128i *preg3,
                              const __m128i *preg4, const __m128i *preg5,
                              const __m128i *preg6, const __m128i *preg7,
                              const __m128i *preg8, const __m128i *preg9,
                              const __m128i *preg10, const __m128i *preg11,
                              const __m128i *preg12, const __m128i *preg13,
                              const __m128i *preg14, const __m128i *preg15,
                              const __m128i *zero) {
  int overflow = k_check_epi32_overflow_4(preg0, preg1, preg2, preg3, zero);
  if (!overflow) {
    overflow = k_check_epi32_overflow_4(preg4, preg5, preg6, preg7, zero);
    if (!overflow) {
      overflow = k_check_epi32_overflow_4(preg8, preg9, preg10, preg11, zero);
      if (!overflow) {
        overflow =
            k_check_epi32_overflow_4(preg12, preg13, preg14, preg15, zero);
      }
    }
  }
  return overflow;
}


x86 assembly (clang, -O0):
<k_check_epi32_overflow_16>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x60(%rbp),%rax
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,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    0x60(%rbp),%r8
call   1030 <k_check_epi32_overflow_4@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    11f4 <k_check_epi32_overflow_16+0xe4>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    0x10(%rbp),%rdx
mov    0x18(%rbp),%rcx
mov    0x60(%rbp),%r8
call   1030 <k_check_epi32_overflow_4@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    11ef <k_check_epi32_overflow_16+0xdf>
mov    0x20(%rbp),%rdi
mov    0x28(%rbp),%rsi
mov    0x30(%rbp),%rdx
mov    0x38(%rbp),%rcx
mov    0x60(%rbp),%r8
call   1030 <k_check_epi32_overflow_4@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    11ea <k_check_epi32_overflow_16+0xda>
mov    0x40(%rbp),%rdi
mov    0x48(%rbp),%rsi
mov    0x50(%rbp),%rdx
mov    0x58(%rbp),%rcx
mov    0x60(%rbp),%r8
call   1030 <k_check_epi32_overflow_4@plt>
mov    %eax,-0x34(%rbp)
jmp    11ef <k_check_epi32_overflow_16+0xdf>
jmp    11f4 <k_check_epi32_overflow_16+0xe4>
mov    -0x34(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<k_check_epi32_overflow_16>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9,%r12
mov    %r8,%rbp
mov    0xc0(%rsp),%rbx
mov    0xb8(%rsp),%rax
mov    %rax,0x18(%rsp)
mov    0xb0(%rsp),%rax
mov    %rax,0x10(%rsp)
mov    0xa8(%rsp),%rax
mov    %rax,0x8(%rsp)
mov    0xa0(%rsp),%rax
mov    %rax,(%rsp)
mov    0x98(%rsp),%rax
mov    %rax,0x30(%rsp)
mov    0x90(%rsp),%rax
mov    %rax,0x28(%rsp)
mov    0x88(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    0x80(%rsp),%r13
mov    0x78(%rsp),%r14
mov    0x70(%rsp),%r15
mov    %rbx,%r8
call   1030 <k_check_epi32_overflow_4@plt>
test   %eax,%eax
jne    11da <k_check_epi32_overflow_16+0xca>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
mov    %rbx,%r8
call   1030 <k_check_epi32_overflow_4@plt>
test   %eax,%eax
jne    11da <k_check_epi32_overflow_16+0xca>
mov    %r13,%rdi
mov    0x20(%rsp),%rsi
mov    0x28(%rsp),%rdx
mov    0x30(%rsp),%rcx
mov    %rbx,%r8
call   1030 <k_check_epi32_overflow_4@plt>
test   %eax,%eax
je     11e9 <k_check_epi32_overflow_16+0xd9>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    (%rsp),%rdi
mov    0x8(%rsp),%rsi
mov    0x10(%rsp),%rdx
mov    0x18(%rsp),%rcx
mov    %rbx,%r8
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <k_check_epi32_overflow_4@plt>

LLVM IR (-O0):
define i32 @k_check_epi32_overflow_16(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, i32* %16) {
%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*
%33 = alloca i32*
%34 = alloca i32*
%35 = alloca i32
store i32* %0, i32** %18
store i32* %1, i32** %19
store i32* %2, i32** %20
store i32* %3, i32** %21
store i32* %4, i32** %22
store i32* %5, i32** %23
store i32* %6, i32** %24
store i32* %7, i32** %25
store i32* %8, i32** %26
store i32* %9, i32** %27
store i32* %10, i32** %28
store i32* %11, i32** %29
store i32* %12, i32** %30
store i32* %13, i32** %31
store i32* %14, i32** %32
store i32* %15, i32** %33
store i32* %16, i32** %34
%36 = load i32*, i32** %18
%37 = load i32*, i32** %19
%38 = load i32*, i32** %20
%39 = load i32*, i32** %21
%40 = load i32*, i32** %34
%41 = call i32 @k_check_epi32_overflow_4(i32* %36, i32* %37, i32* %38, i32* %39, i32* %40)
store i32 %41, i32* %35
%42 = load i32, i32* %35
%43 = icmp ne i32 %42, 0
br i1 %43, label %71, label %44
44: ; preds = %17
%45 = load i32*, i32** %22
%46 = load i32*, i32** %23
%47 = load i32*, i32** %24
%48 = load i32*, i32** %25
%49 = load i32*, i32** %34
%50 = call i32 @k_check_epi32_overflow_4(i32* %45, i32* %46, i32* %47, i32* %48, i32* %49)
store i32 %50, i32* %35
%51 = load i32, i32* %35
%52 = icmp ne i32 %51, 0
br i1 %52, label %70, label %53
53: ; preds = %44
%54 = load i32*, i32** %26
%55 = load i32*, i32** %27
%56 = load i32*, i32** %28
%57 = load i32*, i32** %29
%58 = load i32*, i32** %34
%59 = call i32 @k_check_epi32_overflow_4(i32* %54, i32* %55, i32* %56, i32* %57, i32* %58)
store i32 %59, i32* %35
%60 = load i32, i32* %35
%61 = icmp ne i32 %60, 0
br i1 %61, label %69, label %62
62: ; preds = %53
%63 = load i32*, i32** %30
%64 = load i32*, i32** %31
%65 = load i32*, i32** %32
%66 = load i32*, i32** %33
%67 = load i32*, i32** %34
%68 = call i32 @k_check_epi32_overflow_4(i32* %63, i32* %64, i32* %65, i32* %66, i32* %67)
store i32 %68, i32* %35
br label %69
69: ; preds = %62, %53
br label %70
70: ; preds = %69, %44
br label %71
71: ; preds = %70, %17
%72 = load i32, i32* %35
ret i32 %72
}

LLVM IR (-O2):
define i32 @k_check_epi32_overflow_16(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, i32* %16) {
%18 = tail call i32 @k_check_epi32_overflow_4(i32* %0, i32* %1, i32* %2, i32* %3, i32* %16)
%19 = icmp eq i32 %18, 0
br i1 %19, label %20, label %28
20: ; preds = %17
%21 = tail call i32 @k_check_epi32_overflow_4(i32* %4, i32* %5, i32* %6, i32* %7, i32* %16)
%22 = icmp eq i32 %21, 0
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = tail call i32 @k_check_epi32_overflow_4(i32* %8, i32* %9, i32* %10, i32* %11, i32* %16)
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = tail call i32 @k_check_epi32_overflow_4(i32* %12, i32* %13, i32* %14, i32* %15, i32* %16)
br label %28
28: ; preds = %20, %26, %23, %17
%29 = phi i32 [ %18, %17 ], [ %21, %20 ], [ %24, %23 ], [ %27, %26 ]
ret i32 %29
}