void gem_fpath(fpath, board, fname) char *fpath;
char *board;
char *fname;
{
  *fpath++ = 'g';
  *fpath++ = 'e';
  *fpath++ = 'm';
  *fpath++ = '/';
  *fpath++ = 'b';
  *fpath++ = 'r';
  *fpath++ = 'd';
  mak_fpath(fpath, board, fname);
}


x86 assembly (clang, -O0):
<gem_fpath>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movb   $0x67,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movb   $0x65,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movb   $0x6d,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movb   $0x2f,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movb   $0x62,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movb   $0x72,(%rax)
mov    -0x8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x8(%rbp)
movb   $0x64,(%rax)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    $0x0,%al
call   1030 <mak_fpath@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gem_fpath>:
movl   $0x2f6d6567,(%rdi)
movw   $0x7262,0x4(%rdi)
movb   $0x64,0x6(%rdi)
add    $0x7,%rdi
xor    %eax,%eax
jmp    1030 <mak_fpath@plt>

LLVM IR (-O0):
define void @gem_fpath(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i8*, i8** %4
%8 = getelementptr inbounds i8, i8* %7, i32 1
store i8* %8, i8** %4
store i8 103, i8* %7
%9 = load i8*, i8** %4
%10 = getelementptr inbounds i8, i8* %9, i32 1
store i8* %10, i8** %4
store i8 101, i8* %9
%11 = load i8*, i8** %4
%12 = getelementptr inbounds i8, i8* %11, i32 1
store i8* %12, i8** %4
store i8 109, i8* %11
%13 = load i8*, i8** %4
%14 = getelementptr inbounds i8, i8* %13, i32 1
store i8* %14, i8** %4
store i8 47, i8* %13
%15 = load i8*, i8** %4
%16 = getelementptr inbounds i8, i8* %15, i32 1
store i8* %16, i8** %4
store i8 98, i8* %15
%17 = load i8*, i8** %4
%18 = getelementptr inbounds i8, i8* %17, i32 1
store i8* %18, i8** %4
store i8 114, i8* %17
%19 = load i8*, i8** %4
%20 = getelementptr inbounds i8, i8* %19, i32 1
store i8* %20, i8** %4
store i8 100, i8* %19
%21 = load i8*, i8** %4
%22 = load i8*, i8** %5
%23 = load i8*, i8** %6
%24 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @mak_fpath to i32 (i8*, i8*, i8*, ...)*)(i8* %21, i8* %22, i8* %23)
ret void
}

LLVM IR (-O2):
define void @gem_fpath(i8* %0, i8* %1, i8* %2) {
%4 = getelementptr inbounds i8, i8* %0, i64 1
store i8 103, i8* %0
%5 = getelementptr inbounds i8, i8* %0, i64 2
store i8 101, i8* %4
%6 = getelementptr inbounds i8, i8* %0, i64 3
store i8 109, i8* %5
%7 = getelementptr inbounds i8, i8* %0, i64 4
store i8 47, i8* %6
%8 = getelementptr inbounds i8, i8* %0, i64 5
store i8 98, i8* %7
%9 = getelementptr inbounds i8, i8* %0, i64 6
store i8 114, i8* %8
%10 = getelementptr inbounds i8, i8* %0, i64 7
store i8 100, i8* %9
%11 = tail call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @mak_fpath to i32 (i8*, i8*, i8*, ...)*)(i8* %10, i8* %1, i8* %2)
ret void
}