#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*/ syntax;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ arg_cat_optionv(char *, int, char const *, char const *,
                                   char const *, int /*<<< orphan*/, char *);
int /*<<< orphan*/ fputs(char const *, int /*<<< orphan*/ *);
void arg_print_option(FILE *fp, const char *shortopts, const char *longopts,
                      const char *datatype, const char *suffix) {
  char syntax[200] = "";
  suffix = suffix ? suffix : "";
  arg_cat_optionv(syntax, sizeof(syntax), shortopts, longopts, datatype, 0,
                  "|");
  fputs(syntax, fp);
  fputs(suffix, fp);
}


x86 assembly (clang, -O0):
<arg_print_option>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
lea    -0xf0(%rbp),%rdi
xor    %esi,%esi
mov    $0xc8,%edx
call   1040 <memset@plt>
cmpq   $0x0,-0x28(%rbp)
je     117d <arg_print_option+0x4d>
mov    -0x28(%rbp),%rax
mov    %rax,-0xf8(%rbp)
jmp    1190 <arg_print_option+0x60>
lea    0xe7d(%rip),%rax
mov    %rax,-0xf8(%rbp)
jmp    1190 <arg_print_option+0x60>
mov    -0xf8(%rbp),%rax
mov    %rax,-0x28(%rbp)
lea    -0xf0(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    $0xc8,%esi
xor    %r9d,%r9d
lea    0xe43(%rip),%rax
mov    %rax,(%rsp)
call   1050 <arg_cat_optionv@plt>
lea    -0xf0(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <fputs@plt>
mov    -0x28(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1030 <fputs@plt>
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<arg_print_option>:
push   %r15
push   %r14
push   %rbx
sub    $0xe0,%rsp
mov    %rcx,%rax
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%r14
xorps  %xmm0,%xmm0
movaps %xmm0,0xc0(%rsp)
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movaps %xmm0,0x90(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movaps %xmm0,0x10(%rsp)
movq   $0x0,0xd0(%rsp)
test   %r8,%r8
lea    0xe65(%rip),%rbx
cmovne %r8,%rbx
lea    0xe59(%rip),%rsi
mov    %rsi,(%rsp)
lea    0x10(%rsp),%r15
mov    %r15,%rdi
mov    $0xc8,%esi
mov    %rax,%r8
xor    %r9d,%r9d
call   1040 <arg_cat_optionv@plt>
mov    %r15,%rdi
mov    %r14,%rsi
call   1030 <fputs@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <fputs@plt>
add    $0xe0,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"|\00"
define void @arg_print_option(i32* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca [200 x i8]
store i32* %0, i32** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%12 = bitcast [200 x i8]* %11 to i8*
%13 = load i8*, i8** %10
%14 = icmp ne i8* %13, null
br i1 %14, label %15, label %17
15: ; preds = %5
%16 = load i8*, i8** %10
br label %18
17: ; preds = %5
br label %18
18: ; preds = %17, %15
%19 = phi i8* [ %16, %15 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), %17 ]
store i8* %19, i8** %10
%20 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%21 = load i8*, i8** %7
%22 = load i8*, i8** %8
%23 = load i8*, i8** %9
%24 = call i32 @arg_cat_optionv(i8* %20, i32 200, i8* %21, i8* %22, i8* %23, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%25 = getelementptr inbounds [200 x i8], [200 x i8]* %11, i64 0, i64 0
%26 = load i32*, i32** %6
%27 = call i32 @fputs(i8* %25, i32* %26)
%28 = load i8*, i8** %10
%29 = load i32*, i32** %6
%30 = call i32 @fputs(i8* %28, i32* %29)
ret void
}

LLVM IR (-O2):
@.str = [1 x i8] zeroinitializer
@.str.1 = [2 x i8] c"|\00"
define void @arg_print_option(i32* nocapture %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca [200 x i8]
%7 = getelementptr inbounds [200 x i8], [200 x i8]* %6, i64 0, i64 0
%8 = icmp eq i8* %4, null
%9 = select i1 %8, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str, i64 0, i64 0), i8* %4
%10 = call i32 @arg_cat_optionv(i8* %7, i32 200, i8* %1, i8* %2, i8* %3, i32 0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @fputs(i8* %7, i32* %0)
%12 = call i32 @fputs(i8* %9, i32* %0)
ret void
}