#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 */
struct sdparm_mode_page_item {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ print_mp_entry(char const *, int,
                                  struct sdparm_mode_page_item const *,
                                  unsigned char const *, unsigned char const *,
                                  unsigned char const *, unsigned char const *,
                                  int, int);
void print_mp_arr_entry(const char *pre, int smask,
                        const struct sdparm_mode_page_item *mpi, void **pc_arr,
                        int long_out, int force_decimal) {
  const unsigned char *cur_mp = (const unsigned char *)pc_arr[0];
  const unsigned char *cha_mp = (const unsigned char *)pc_arr[1];
  const unsigned char *def_mp = (const unsigned char *)pc_arr[2];
  const unsigned char *sav_mp = (const unsigned char *)pc_arr[3];
  print_mp_entry(pre, smask, mpi, cur_mp, cha_mp, def_mp, sav_mp, long_out,
                 force_decimal);
}


x86 assembly (clang, -O0):
<print_mp_arr_entry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9d,-0x28(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%rax
mov    0x18(%rax),%rax
mov    %rax,-0x48(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    -0x18(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r9
mov    -0x48(%rbp),%r11
mov    -0x24(%rbp),%r10d
mov    -0x28(%rbp),%eax
mov    %r11,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
call   1030 <print_mp_entry@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_mp_arr_entry>:
push   %rax
mov    %r9d,%r11d
mov    %r8d,%r10d
mov    %rcx,%rax
mov    (%rcx),%rcx
mov    0x8(%rax),%r8
mov    0x10(%rax),%r9
sub    $0x8,%rsp
push   %r11
push   %r10
push   0x18(%rax)
call   1030 <print_mp_entry@plt>
add    $0x20,%rsp
pop    %rax
ret

LLVM IR (-O0):
%struct.sdparm_mode_page_item = type { i32 }
define void @print_mp_arr_entry(i8* %0, i32 %1, %struct.sdparm_mode_page_item* %2, i8** %3, i32 %4, i32 %5) {
%7 = alloca i8*
%8 = alloca i32
%9 = alloca %struct.sdparm_mode_page_item*
%10 = alloca i8**
%11 = alloca i32
%12 = alloca i32
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
store i8* %0, i8** %7
store i32 %1, i32* %8
store %struct.sdparm_mode_page_item* %2, %struct.sdparm_mode_page_item** %9
store i8** %3, i8*** %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%17 = load i8**, i8*** %10
%18 = getelementptr inbounds i8*, i8** %17, i64 0
%19 = load i8*, i8** %18
store i8* %19, i8** %13
%20 = load i8**, i8*** %10
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
store i8* %22, i8** %14
%23 = load i8**, i8*** %10
%24 = getelementptr inbounds i8*, i8** %23, i64 2
%25 = load i8*, i8** %24
store i8* %25, i8** %15
%26 = load i8**, i8*** %10
%27 = getelementptr inbounds i8*, i8** %26, i64 3
%28 = load i8*, i8** %27
store i8* %28, i8** %16
%29 = load i8*, i8** %7
%30 = load i32, i32* %8
%31 = load %struct.sdparm_mode_page_item*, %struct.sdparm_mode_page_item** %9
%32 = load i8*, i8** %13
%33 = load i8*, i8** %14
%34 = load i8*, i8** %15
%35 = load i8*, i8** %16
%36 = load i32, i32* %11
%37 = load i32, i32* %12
%38 = call i32 @print_mp_entry(i8* %29, i32 %30, %struct.sdparm_mode_page_item* %31, i8* %32, i8* %33, i8* %34, i8* %35, i32 %36, i32 %37)
ret void
}

LLVM IR (-O2):
%struct.sdparm_mode_page_item = type { i32 }
define void @print_mp_arr_entry(i8* %0, i32 %1, %struct.sdparm_mode_page_item* %2, i8** nocapture %3, i32 %4, i32 %5) {
%7 = load i8*, i8** %3
%8 = getelementptr inbounds i8*, i8** %3, i64 1
%9 = load i8*, i8** %8
%10 = getelementptr inbounds i8*, i8** %3, i64 2
%11 = load i8*, i8** %10
%12 = getelementptr inbounds i8*, i8** %3, i64 3
%13 = load i8*, i8** %12
%14 = tail call i32 @print_mp_entry(i8* %0, i32 %1, %struct.sdparm_mode_page_item* %2, i8* %7, i8* %9, i8* %11, i8* %13, i32 %4, i32 %5)
ret void
}