#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 */

/* Variables and functions */
int /*<<< orphan*/ VIM_HIF_SetReg8(int, unsigned long);
void VIM_MARB_SetRecaptureInfo(unsigned char MaxTimes,
                               unsigned long MaxLength) {
  MaxLength >>= 2;
  VIM_HIF_SetReg8((0x2400 + 0x0A6), MaxTimes);
  VIM_HIF_SetReg8((0x2400 + 0x0A8), (MaxLength >> 24));
  VIM_HIF_SetReg8((0x2400 + 0x0A9), (MaxLength >> 16));
  VIM_HIF_SetReg8((0x2400 + 0x0AA), (MaxLength >> 8));
  VIM_HIF_SetReg8((0x2400 + 0x0AB), MaxLength);
}


x86 assembly (clang, -O0):
<VIM_MARB_SetRecaptureInfo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
shr    $0x2,%rax
mov    %rax,-0x10(%rbp)
movzbl -0x1(%rbp),%eax
mov    %eax,%esi
mov    $0x24a6,%edi
call   1030 <VIM_HIF_SetReg8@plt>
mov    -0x10(%rbp),%rsi
shr    $0x18,%rsi
mov    $0x24a8,%edi
call   1030 <VIM_HIF_SetReg8@plt>
mov    -0x10(%rbp),%rsi
shr    $0x10,%rsi
mov    $0x24a9,%edi
call   1030 <VIM_HIF_SetReg8@plt>
mov    -0x10(%rbp),%rsi
shr    $0x8,%rsi
mov    $0x24aa,%edi
call   1030 <VIM_HIF_SetReg8@plt>
mov    -0x10(%rbp),%rsi
mov    $0x24ab,%edi
call   1030 <VIM_HIF_SetReg8@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<VIM_MARB_SetRecaptureInfo>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %rsi,%r14
shr    $0x2,%r14
mov    %edi,%esi
mov    $0x24a6,%edi
call   1030 <VIM_HIF_SetReg8@plt>
mov    %rbx,%rsi
shr    $0x1a,%rsi
mov    $0x24a8,%edi
call   1030 <VIM_HIF_SetReg8@plt>
mov    %rbx,%rsi
shr    $0x12,%rsi
mov    $0x24a9,%edi
call   1030 <VIM_HIF_SetReg8@plt>
shr    $0xa,%rbx
mov    $0x24aa,%edi
mov    %rbx,%rsi
call   1030 <VIM_HIF_SetReg8@plt>
mov    $0x24ab,%edi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <VIM_HIF_SetReg8@plt>

LLVM IR (-O0):
define void @VIM_MARB_SetRecaptureInfo(i8 zeroext %0, i64 %1) {
%3 = alloca i8
%4 = alloca i64
store i8 %0, i8* %3
store i64 %1, i64* %4
%5 = load i64, i64* %4
%6 = lshr i64 %5, 2
store i64 %6, i64* %4
%7 = load i8, i8* %3
%8 = zext i8 %7 to i64
%9 = call i32 @VIM_HIF_SetReg8(i32 9382, i64 %8)
%10 = load i64, i64* %4
%11 = lshr i64 %10, 24
%12 = call i32 @VIM_HIF_SetReg8(i32 9384, i64 %11)
%13 = load i64, i64* %4
%14 = lshr i64 %13, 16
%15 = call i32 @VIM_HIF_SetReg8(i32 9385, i64 %14)
%16 = load i64, i64* %4
%17 = lshr i64 %16, 8
%18 = call i32 @VIM_HIF_SetReg8(i32 9386, i64 %17)
%19 = load i64, i64* %4
%20 = call i32 @VIM_HIF_SetReg8(i32 9387, i64 %19)
ret void
}

LLVM IR (-O2):
define void @VIM_MARB_SetRecaptureInfo(i8 zeroext %0, i64 %1) {
%3 = lshr i64 %1, 2
%4 = zext i8 %0 to i64
%5 = tail call i32 @VIM_HIF_SetReg8(i32 9382, i64 %4)
%6 = lshr i64 %1, 26
%7 = tail call i32 @VIM_HIF_SetReg8(i32 9384, i64 %6)
%8 = lshr i64 %1, 18
%9 = tail call i32 @VIM_HIF_SetReg8(i32 9385, i64 %8)
%10 = lshr i64 %1, 10
%11 = tail call i32 @VIM_HIF_SetReg8(i32 9386, i64 %10)
%12 = tail call i32 @VIM_HIF_SetReg8(i32 9387, i64 %3)
ret void
}