#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_8(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 *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);
  }
  return overflow;
}


x86 assembly (clang, -O0):
<k_check_epi32_overflow_8>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
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    0x20(%rbp),%r8
call   1030 <k_check_epi32_overflow_4@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    117e <k_check_epi32_overflow_8+0x6e>
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    0x10(%rbp),%rdx
mov    0x18(%rbp),%rcx
mov    0x20(%rbp),%r8
call   1030 <k_check_epi32_overflow_4@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<k_check_epi32_overflow_8>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %r9,%r14
mov    %r8,%r15
mov    0x40(%rsp),%rbx
mov    0x38(%rsp),%r12
mov    0x30(%rsp),%r13
mov    %rbx,%r8
call   1030 <k_check_epi32_overflow_4@plt>
test   %eax,%eax
je     1144 <k_check_epi32_overflow_8+0x34>
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret
mov    %r15,%rdi
mov    %r14,%rsi
mov    %r13,%rdx
mov    %r12,%rcx
mov    %rbx,%r8
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
jmp    1030 <k_check_epi32_overflow_4@plt>

LLVM IR (-O0):
define i32 @k_check_epi32_overflow_8(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8) {
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32*
%19 = alloca i32
store i32* %0, i32** %10
store i32* %1, i32** %11
store i32* %2, i32** %12
store i32* %3, i32** %13
store i32* %4, i32** %14
store i32* %5, i32** %15
store i32* %6, i32** %16
store i32* %7, i32** %17
store i32* %8, i32** %18
%20 = load i32*, i32** %10
%21 = load i32*, i32** %11
%22 = load i32*, i32** %12
%23 = load i32*, i32** %13
%24 = load i32*, i32** %18
%25 = call i32 @k_check_epi32_overflow_4(i32* %20, i32* %21, i32* %22, i32* %23, i32* %24)
store i32 %25, i32* %19
%26 = load i32, i32* %19
%27 = icmp ne i32 %26, 0
br i1 %27, label %35, label %28
28: ; preds = %9
%29 = load i32*, i32** %14
%30 = load i32*, i32** %15
%31 = load i32*, i32** %16
%32 = load i32*, i32** %17
%33 = load i32*, i32** %18
%34 = call i32 @k_check_epi32_overflow_4(i32* %29, i32* %30, i32* %31, i32* %32, i32* %33)
store i32 %34, i32* %19
br label %35
35: ; preds = %28, %9
%36 = load i32, i32* %19
ret i32 %36
}

LLVM IR (-O2):
define i32 @k_check_epi32_overflow_8(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8) {
%10 = tail call i32 @k_check_epi32_overflow_4(i32* %0, i32* %1, i32* %2, i32* %3, i32* %8)
%11 = icmp eq i32 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = tail call i32 @k_check_epi32_overflow_4(i32* %4, i32* %5, i32* %6, i32* %7, i32* %8)
br label %14
14: ; preds = %12, %9
%15 = phi i32 [ %10, %9 ], [ %13, %12 ]
ret i32 %15
}