#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*/ CmdEndParagraph(int /*<<< orphan*/);
int /*<<< orphan*/ CmdVspace(int);
int /*<<< orphan*/ fprintRTF(char *);
char getAlignment();
int /*<<< orphan*/ setAlignment(char);
int /*<<< orphan*/ startParagraph(char *, int);
void CmdAcknowledgments(int code) {
  static char oldalignment;
  CmdEndParagraph(0);
  if (code == 0x4000) {
    CmdVspace(3);
    startParagraph("acknowledgments", 2);
    fprintRTF("\n{\\b ");
    fprintRTF("Acknowledgments");
    fprintRTF("}\n");
    CmdEndParagraph(0);
    oldalignment = getAlignment();
    setAlignment('j');
  } else {
    setAlignment(oldalignment);
    CmdVspace(3);
  }
}


x86 assembly (clang, -O0):
<CmdAcknowledgments>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
xor    %edi,%edi
call   1080 <CmdEndParagraph@plt>
cmpl   $0x4000,-0x4(%rbp)
jne    11e1 <CmdAcknowledgments+0x81>
mov    $0x3,%edi
call   1030 <CmdVspace@plt>
lea    0xe70(%rip),%rdi
mov    $0x2,%esi
call   1060 <startParagraph@plt>
lea    0xe6f(%rip),%rdi
call   1070 <fprintRTF@plt>
lea    0xe69(%rip),%rdi
call   1070 <fprintRTF@plt>
lea    0xe6d(%rip),%rdi
call   1070 <fprintRTF@plt>
xor    %edi,%edi
call   1080 <CmdEndParagraph@plt>
mov    $0x0,%al
call   1040 <getAlignment@plt>
mov    %al,0x2e7f(%rip)
mov    $0x6a,%edi
call   1050 <setAlignment@plt>
jmp    11f7 <CmdAcknowledgments+0x97>
movsbl 0x2e69(%rip),%edi
call   1050 <setAlignment@plt>
mov    $0x3,%edi
call   1030 <CmdVspace@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<CmdAcknowledgments>:
push   %rbx
mov    %edi,%ebx
xor    %edi,%edi
call   1080 <CmdEndParagraph@plt>
cmp    $0x4000,%ebx
jne    11d0 <CmdAcknowledgments+0x70>
mov    $0x3,%edi
call   1030 <CmdVspace@plt>
lea    0xe7d(%rip),%rdi
mov    $0x2,%esi
call   1060 <startParagraph@plt>
lea    0xe7c(%rip),%rdi
call   1070 <fprintRTF@plt>
lea    0xe76(%rip),%rdi
call   1070 <fprintRTF@plt>
lea    0xe7a(%rip),%rdi
call   1070 <fprintRTF@plt>
xor    %edi,%edi
call   1080 <CmdEndParagraph@plt>
xor    %eax,%eax
call   1040 <getAlignment@plt>
mov    %al,0x2e8c(%rip)
mov    $0x6a,%edi
pop    %rbx
jmp    1050 <setAlignment@plt>
movsbl 0x2e7a(%rip),%edi
call   1050 <setAlignment@plt>
mov    $0x3,%edi
pop    %rbx
jmp    1030 <CmdVspace@plt>

LLVM IR (-O0):
@CmdAcknowledgments.oldalignment = internal global i8 0
@.str = [16 x i8] c"acknowledgments\00"
@.str.1 = [6 x i8] c"\0A{\\b \00"
@.str.2 = [16 x i8] c"Acknowledgments\00"
@.str.3 = [3 x i8] c"}\0A\00"
define void @CmdAcknowledgments(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = call i32 @CmdEndParagraph(i32 0)
%4 = load i32, i32* %2
%5 = icmp eq i32 %4, 16384
br i1 %5, label %6, label %15
6: ; preds = %1
%7 = call i32 @CmdVspace(i32 3)
%8 = call i32 @startParagraph(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 2)
%9 = call i32 @fprintRTF(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @fprintRTF(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @fprintRTF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%12 = call i32 @CmdEndParagraph(i32 0)
%13 = call signext i8 (...) @getAlignment()
store i8 %13, i8* @CmdAcknowledgments.oldalignment
%14 = call i32 @setAlignment(i8 signext 106)
br label %19
15: ; preds = %1
%16 = load i8, i8* @CmdAcknowledgments.oldalignment
%17 = call i32 @setAlignment(i8 signext %16)
%18 = call i32 @CmdVspace(i32 3)
br label %19
19: ; preds = %15, %6
ret void
}

LLVM IR (-O2):
@CmdAcknowledgments.oldalignment = internal unnamed_addr global i8 0
@.str = [16 x i8] c"acknowledgments\00"
@.str.1 = [6 x i8] c"\0A{\\b \00"
@.str.2 = [16 x i8] c"Acknowledgments\00"
@.str.3 = [3 x i8] c"}\0A\00"
define void @CmdAcknowledgments(i32 %0) {
%2 = tail call i32 @CmdEndParagraph(i32 0)
%3 = icmp eq i32 %0, 16384
br i1 %3, label %4, label %13
4: ; preds = %1
%5 = tail call i32 @CmdVspace(i32 3)
%6 = tail call i32 @startParagraph(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str, i64 0, i64 0), i32 2)
%7 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%8 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @fprintRTF(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%10 = tail call i32 @CmdEndParagraph(i32 0)
%11 = tail call signext i8 (...) @getAlignment()
store i8 %11, i8* @CmdAcknowledgments.oldalignment
%12 = tail call i32 @setAlignment(i8 signext 106)
br label %17
13: ; preds = %1
%14 = load i8, i8* @CmdAcknowledgments.oldalignment
%15 = tail call i32 @setAlignment(i8 signext %14)
%16 = tail call i32 @CmdVspace(i32 3)
br label %17
17: ; preds = %13, %4
ret void
}