#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 */
typedef struct TYPE_3__ TYPE_1__;

/* Type definitions */
struct TYPE_3__ {
  char *name;
};
typedef TYPE_1__ OBJ_NAME;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, char *);
int /*<<< orphan*/ stderr;
void show_ciphers(const OBJ_NAME *name, void *arg) {
  static int n;
  fprintf(stderr, " -%-24s%s", name->name, (++n % 3 ? "" : "\n"));
}


x86 assembly (clang, -O0):
<show_ciphers>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2eb9(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    0x2ef2(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2ee9(%rip)
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
mov    -0x18(%rbp),%rdx
lea    0xeb2(%rip),%rcx
lea    0xeac(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%rcx
lea    0xe93(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_ciphers>:
mov    0x2ec9(%rip),%rax
mov    (%rax),%eax
mov    (%rdi),%rdx
mov    0x2f0a(%rip),%ecx
add    $0x1,%ecx
mov    %ecx,0x2f01(%rip)
imul   $0xaaaaaaab,%ecx,%ecx
add    $0x2aaaaaaa,%ecx
cmp    $0x55555555,%ecx
lea    0xec6(%rip),%rsi
lea    0xec0(%rip),%rcx
cmovb  %rsi,%rcx
lea    0xeaa(%rip),%rsi
mov    %eax,%edi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
%struct.TYPE_3__ = type { i8* }
@show_ciphers.n = internal global i32 0
@stderr = global i32 0
@.str = [10 x i8] c" -%-24s%s\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [2 x i8] c"\0A\00"
define void @show_ciphers(%struct.TYPE_3__* %0, i8* %1) {
%3 = alloca %struct.TYPE_3__*
%4 = alloca i8*
store %struct.TYPE_3__* %0, %struct.TYPE_3__** %3
store i8* %1, i8** %4
%5 = load i32, i32* @stderr
%6 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%7 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %6, i32 0, i32 0
%8 = load i8*, i8** %7
%9 = load i32, i32* @show_ciphers.n
%10 = add nsw i32 %9, 1
store i32 %10, i32* @show_ciphers.n
%11 = srem i32 %10, 3
%12 = icmp ne i32 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0)
%15 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %14)
ret void
}

LLVM IR (-O2):
%struct.TYPE_3__ = type { i8* }
@show_ciphers.n = internal unnamed_addr global i32 0
@stderr = global i32 0
@.str = [10 x i8] c" -%-24s%s\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [2 x i8] c"\0A\00"
define void @show_ciphers(%struct.TYPE_3__* nocapture %0, i8* nocapture readnone %1) {
%3 = load i32, i32* @stderr
%4 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%5 = load i8*, i8** %4
%6 = load i32, i32* @show_ciphers.n
%7 = add nsw i32 %6, 1
store i32 %7, i32* @show_ciphers.n
%8 = srem i32 %7, 3
%9 = icmp eq i32 %8, 0
%10 = select i1 %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0)
%11 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %5, i8* %10)
ret void
}