#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*/ time_t;
struct chirp_client {
  int dummy;
};
typedef int /*<<< orphan*/ int64_t;

/* Variables and functions */
int /*<<< orphan*/ send_command(struct chirp_client *, int /*<<< orphan*/,
                                char *, int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/, int /*<<< orphan*/,
                                int /*<<< orphan*/);
int64_t chirp_client_sread_begin(struct chirp_client *c, int64_t fd,
                                 void *buffer, int64_t length,
                                 int64_t stride_length, int64_t stride_skip,
                                 int64_t offset, time_t stoptime) {
  return send_command(c, stoptime, "sread %lld %lld %lld %lld %lld\n", fd,
                      length, stride_length, stride_skip, offset);
}


x86 assembly (clang, -O0):
<chirp_client_sread_begin>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
mov    -0x8(%rbp),%rdi
mov    0x18(%rbp),%esi
mov    -0xc(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    -0x20(%rbp),%r9d
mov    -0x24(%rbp),%r10d
mov    0x10(%rbp),%eax
lea    0xeac(%rip),%rdx
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1030 <send_command@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chirp_client_sread_begin>:
push   %rax
mov    %r9d,%eax
mov    %r8d,%r9d
mov    %ecx,%r8d
mov    %esi,%ecx
mov    0x18(%rsp),%esi
mov    0x10(%rsp),%r10d
lea    0xed4(%rip),%rdx
push   %r10
push   %rax
call   1030 <send_command@plt>
add    $0x10,%rsp
pop    %rcx
ret

LLVM IR (-O0):
%struct.chirp_client = type { i32 }
@.str = [32 x i8] c"sread %lld %lld %lld %lld %lld\0A\00"
define i32 @chirp_client_sread_begin(%struct.chirp_client* %0, i32 %1, i8* %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca %struct.chirp_client*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store %struct.chirp_client* %0, %struct.chirp_client** %9
store i32 %1, i32* %10
store i8* %2, i8** %11
store i32 %3, i32* %12
store i32 %4, i32* %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%17 = load %struct.chirp_client*, %struct.chirp_client** %9
%18 = load i32, i32* %16
%19 = load i32, i32* %10
%20 = load i32, i32* %12
%21 = load i32, i32* %13
%22 = load i32, i32* %14
%23 = load i32, i32* %15
%24 = call i32 @send_command(%struct.chirp_client* %17, i32 %18, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %19, i32 %20, i32 %21, i32 %22, i32 %23)
ret i32 %24
}

LLVM IR (-O2):
%struct.chirp_client = type { i32 }
@.str = [32 x i8] c"sread %lld %lld %lld %lld %lld\0A\00"
define i32 @chirp_client_sread_begin(%struct.chirp_client* %0, i32 %1, i8* nocapture readnone %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7) {
%9 = tail call i32 @send_command(%struct.chirp_client* %0, i32 %7, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i32 %1, i32 %3, i32 %4, i32 %5, i32 %6)
ret i32 %9
}