#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*/ ConvertString(char *);
int /*<<< orphan*/ fprintRTF(char *, ...);
void InsertContentMark(char marker, char *s1, char *s2, char *s3) {
  fprintRTF("{\\field{\\*\\fldinst TC \"");
  ConvertString(s1);
  ConvertString(s2);
  ConvertString(s3);
  fprintRTF("\" \\\\f %c}{\\fldrslt }}", marker);
}


x86 assembly (clang, -O0):
<InsertContentMark>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
lea    0xebf(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
mov    -0x10(%rbp),%rdi
call   1030 <ConvertString@plt>
mov    -0x18(%rbp),%rdi
call   1030 <ConvertString@plt>
mov    -0x20(%rbp),%rdi
call   1030 <ConvertString@plt>
movsbl -0x1(%rbp),%esi
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1040 <fprintRTF@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<InsertContentMark>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xec7(%rip),%rdi
xor    %eax,%eax
call   1040 <fprintRTF@plt>
mov    %rbx,%rdi
call   1030 <ConvertString@plt>
mov    %r15,%rdi
call   1030 <ConvertString@plt>
mov    %r14,%rdi
call   1030 <ConvertString@plt>
lea    0xeb9(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fprintRTF@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"{\\field{\\*\\fldinst TC \22\00"
@.str.1 = [22 x i8] c"\22 \\\\f %c}{\\fldrslt }}\00"
define void @InsertContentMark(i8 signext %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
store i8 %0, i8* %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
%9 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%10 = load i8*, i8** %6
%11 = call i32 @ConvertString(i8* %10)
%12 = load i8*, i8** %7
%13 = call i32 @ConvertString(i8* %12)
%14 = load i8*, i8** %8
%15 = call i32 @ConvertString(i8* %14)
%16 = load i8, i8* %5
%17 = sext i8 %16 to i32
%18 = call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %17)
ret void
}

LLVM IR (-O2):
@.str = [24 x i8] c"{\\field{\\*\\fldinst TC \22\00"
@.str.1 = [22 x i8] c"\22 \\\\f %c}{\\fldrslt }}\00"
define void @InsertContentMark(i8 signext %0, i8* %1, i8* %2, i8* %3) {
%5 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%6 = tail call i32 @ConvertString(i8* %1)
%7 = tail call i32 @ConvertString(i8* %2)
%8 = tail call i32 @ConvertString(i8* %3)
%9 = sext i8 %0 to i32
%10 = tail call i32 (i8*, ...) @fprintRTF(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i32 %9)
ret void
}