#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 scalar_t__ uint8_t;
typedef int uint64_t;
typedef int uint32_t;
typedef int int8_t;
typedef int int16_t;

/* Variables and functions */
void f883b(int8_t *result, int16_t *__restrict arg1, uint32_t *__restrict arg2,
           uint64_t *__restrict arg3, uint8_t *__restrict arg4) {
  int idx;
  for (idx = 0; idx < 96; idx += 1) {
    result[idx] = (((((((((((-27 + 2 + 1) >> 1) || arg4[idx]) < arg1[idx])
                             ? (((-27 + 2 + 1) >> 1) || arg4[idx])
                             : arg1[idx]) >>
                        (arg2[idx] & 31)) ^
                       1) -
                      -32) >>
                     7) |
                    -5) &
                   arg3[idx]);
  }
}


x86 assembly (clang, -O0):
<f883b>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x60,-0x2c(%rbp)
jge    119d <f883b+0x9d>
mov    -0x10(%rbp),%rcx
movslq -0x2c(%rbp),%rdx
mov    $0x1,%eax
cmp    (%rcx,%rdx,4),%eax
jge    114c <f883b+0x4c>
mov    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    115a <f883b+0x5a>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,4),%ecx
and    $0x1f,%ecx
sar    %cl,%edx
xor    $0x1,%edx
sub    $0xffffffe0,%edx
sar    $0x7,%edx
or     $0xfffffffb,%edx
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
and    (%rax,%rcx,4),%edx
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    111f <f883b+0x1f>
pop    %rbp
ret

x86 assembly (clang, -O2):
<f883b>:
xor    %eax,%eax
movdqa 0xef6(%rip),%xmm0
pcmpeqd %xmm8,%xmm8
movdqa 0xef8(%rip),%xmm9
movdqa 0xeff(%rip),%xmm10
movdqa 0xf07(%rip),%xmm4
nopl   0x0(%rax)
movdqu (%rsi,%rax,4),%xmm5
movdqa %xmm0,%xmm6
pcmpgtd %xmm5,%xmm6
pand   %xmm6,%xmm5
paddd  %xmm6,%xmm5
psubd  %xmm8,%xmm5
movdqu (%rdx,%rax,4),%xmm6
pand   %xmm9,%xmm6
pshufd $0xee,%xmm6,%xmm7
pshuflw $0xfe,%xmm7,%xmm1
movdqa %xmm5,%xmm2
psrad  %xmm1,%xmm2
pshuflw $0x54,%xmm7,%xmm1
movdqa %xmm5,%xmm7
psrad  %xmm1,%xmm7
pshuflw $0xfe,%xmm6,%xmm1
movdqa %xmm5,%xmm3
psrad  %xmm1,%xmm3
pshuflw $0x54,%xmm6,%xmm1
psrad  %xmm1,%xmm5
punpckhqdq %xmm2,%xmm7
punpcklqdq %xmm3,%xmm5
shufps $0xcc,%xmm7,%xmm5
xorps  %xmm0,%xmm5
paddd  %xmm10,%xmm5
psrld  $0x7,%xmm5
por    %xmm4,%xmm5
movdqu (%rcx,%rax,4),%xmm1
pand   %xmm5,%xmm1
movdqu %xmm1,(%rdi,%rax,4)
add    $0x4,%rax
cmp    $0x60,%rax
jne    1130 <f883b+0x30>
ret

LLVM IR (-O0):
define void @f883b(i32* %0, i32* noalias %1, i32* noalias %2, i32* noalias %3, i64* noalias %4) {
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i64*
%11 = alloca i32
store i32* %0, i32** %6
store i32* %1, i32** %7
store i32* %2, i32** %8
store i32* %3, i32** %9
store i64* %4, i64** %10
store i32 0, i32* %11
br label %12
12: ; preds = %52, %5
%13 = load i32, i32* %11
%14 = icmp slt i32 %13, 96
br i1 %14, label %15, label %55
15: ; preds = %12
%16 = load i32*, i32** %7
%17 = load i32, i32* %11
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds i32, i32* %16, i64 %18
%20 = load i32, i32* %19
%21 = icmp slt i32 1, %20
br i1 %21, label %22, label %23
22: ; preds = %15
br label %29
23: ; preds = %15
%24 = load i32*, i32** %7
%25 = load i32, i32* %11
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds i32, i32* %24, i64 %26
%28 = load i32, i32* %27
br label %29
29: ; preds = %23, %22
%30 = phi i32 [ 1, %22 ], [ %28, %23 ]
%31 = load i32*, i32** %8
%32 = load i32, i32* %11
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, i32* %31, i64 %33
%35 = load i32, i32* %34
%36 = and i32 %35, 31
%37 = ashr i32 %30, %36
%38 = xor i32 %37, 1
%39 = sub nsw i32 %38, -32
%40 = ashr i32 %39, 7
%41 = or i32 %40, -5
%42 = load i32*, i32** %9
%43 = load i32, i32* %11
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds i32, i32* %42, i64 %44
%46 = load i32, i32* %45
%47 = and i32 %41, %46
%48 = load i32*, i32** %6
%49 = load i32, i32* %11
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds i32, i32* %48, i64 %50
store i32 %47, i32* %51
br label %52
52: ; preds = %29
%53 = load i32, i32* %11
%54 = add nsw i32 %53, 1
store i32 %54, i32* %11
br label %12
55: ; preds = %12
ret void
}

LLVM IR (-O2):
define void @f883b(i32* nocapture writeonly %0, i32* noalias nocapture %1, i32* noalias nocapture %2, i32* noalias nocapture %3, i64* noalias nocapture readnone %4) {
br label %6
6: ; preds = %6, %5
%7 = phi i64 [ 0, %5 ], [ %28, %6 ]
%8 = getelementptr inbounds i32, i32* %1, i64 %7
%9 = bitcast i32* %8 to <4 x i32>*
%10 = load <4 x i32>, <4 x i32>* %9
%11 = icmp slt <4 x i32> %10, <i32 1, i32 1, i32 1, i32 1>
%12 = select <4 x i1> %11, <4 x i32> %10, <4 x i32> <i32 1, i32 1, i32 1, i32 1>
%13 = getelementptr inbounds i32, i32* %2, i64 %7
%14 = bitcast i32* %13 to <4 x i32>*
%15 = load <4 x i32>, <4 x i32>* %14
%16 = and <4 x i32> %15, <i32 31, i32 31, i32 31, i32 31>
%17 = ashr <4 x i32> %12, %16
%18 = xor <4 x i32> %17, <i32 1, i32 1, i32 1, i32 1>
%19 = add nsw <4 x i32> %18, <i32 32, i32 32, i32 32, i32 32>
%20 = lshr <4 x i32> %19, <i32 7, i32 7, i32 7, i32 7>
%21 = or <4 x i32> %20, <i32 -5, i32 -5, i32 -5, i32 -5>
%22 = getelementptr inbounds i32, i32* %3, i64 %7
%23 = bitcast i32* %22 to <4 x i32>*
%24 = load <4 x i32>, <4 x i32>* %23
%25 = and <4 x i32> %21, %24
%26 = getelementptr inbounds i32, i32* %0, i64 %7
%27 = bitcast i32* %26 to <4 x i32>*
store <4 x i32> %25, <4 x i32>* %27
%28 = add nuw i64 %7, 4
%29 = icmp eq i64 %28, 96
br i1 %29, label %30, label %6
30: ; preds = %6
ret void
}