#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 RadarScan {
  int dummy;
};
struct RadarParm {
  int dummy;
};
struct FitData {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int FitReadRadarScan(int /*<<< orphan*/, int *, struct RadarScan *,
                     struct RadarParm *, struct FitData *, int, int, int);
int /*<<< orphan*/ fileno(int /*<<< orphan*/ *);
int FitFreadRadarScan(FILE *fp, int *state, struct RadarScan *ptr,
                      struct RadarParm *prm, struct FitData *fit, int tlen,
                      int lock, int chn) {
  return FitReadRadarScan(fileno(fp), state, ptr, prm, fit, tlen, lock, chn);
}


x86 assembly (clang, -O0):
<FitFreadRadarScan>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9d,-0x2c(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <fileno@plt>
mov    %eax,%edi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x20(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x2c(%rbp),%r9d
mov    0x10(%rbp),%r10d
mov    0x18(%rbp),%eax
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1030 <FitReadRadarScan@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FitFreadRadarScan>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r9d,%r14d
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%rbx
mov    %rsi,%rbp
call   1040 <fileno@plt>
mov    %eax,%edi
mov    %rbp,%rsi
mov    %rbx,%rdx
mov    %r12,%rcx
mov    %r15,%r8
mov    %r14d,%r9d
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <FitReadRadarScan@plt>

LLVM IR (-O0):
%struct.RadarScan = type { i32 }
%struct.RadarParm = type { i32 }
%struct.FitData = type { i32 }
define i32 @FitFreadRadarScan(i32* %0, i32* %1, %struct.RadarScan* %2, %struct.RadarParm* %3, %struct.FitData* %4, i32 %5, i32 %6, i32 %7) {
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca %struct.RadarScan*
%12 = alloca %struct.RadarParm*
%13 = alloca %struct.FitData*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32* %0, i32** %9
store i32* %1, i32** %10
store %struct.RadarScan* %2, %struct.RadarScan** %11
store %struct.RadarParm* %3, %struct.RadarParm** %12
store %struct.FitData* %4, %struct.FitData** %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32 %7, i32* %16
%17 = load i32*, i32** %9
%18 = call i32 @fileno(i32* %17)
%19 = load i32*, i32** %10
%20 = load %struct.RadarScan*, %struct.RadarScan** %11
%21 = load %struct.RadarParm*, %struct.RadarParm** %12
%22 = load %struct.FitData*, %struct.FitData** %13
%23 = load i32, i32* %14
%24 = load i32, i32* %15
%25 = load i32, i32* %16
%26 = call i32 @FitReadRadarScan(i32 %18, i32* %19, %struct.RadarScan* %20, %struct.RadarParm* %21, %struct.FitData* %22, i32 %23, i32 %24, i32 %25)
ret i32 %26
}

LLVM IR (-O2):
%struct.RadarScan = type { i32 }
%struct.RadarParm = type { i32 }
%struct.FitData = type { i32 }
define i32 @FitFreadRadarScan(i32* nocapture %0, i32* %1, %struct.RadarScan* %2, %struct.RadarParm* %3, %struct.FitData* %4, i32 %5, i32 %6, i32 %7) {
%9 = tail call i32 @fileno(i32* %0)
%10 = tail call i32 @FitReadRadarScan(i32 %9, i32* %1, %struct.RadarScan* %2, %struct.RadarParm* %3, %struct.FitData* %4, i32 %5, i32 %6, i32 %7)
ret i32 %10
}