#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*/ islower(unsigned char);
int /*<<< orphan*/ stderr;
void show_ciphers(const OBJ_NAME *name, void *arg) {
  static int n;
  if (!islower((unsigned char)*name->name))
    return;
  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    -0x8(%rbp),%rax
mov    (%rax),%rax
movzbl (%rax),%edi
call   1030 <islower@plt>
cmp    $0x0,%eax
jne    114d <show_ciphers+0x2d>
jmp    119f <show_ciphers+0x7f>
mov    0x2e8c(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rax
mov    %rax,-0x18(%rbp)
mov    0x2ecd(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2ec4(%rip)
mov    $0x3,%ecx
cltd
idiv   %ecx
mov    %edx,%esi
mov    -0x18(%rbp),%rdx
lea    0xe85(%rip),%rcx
lea    0xe7f(%rip),%rax
cmp    $0x0,%esi
cmovne %rax,%rcx
lea    0xe66(%rip),%rsi
call   1040 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_ciphers>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%rax
movzbl (%rax),%edi
call   1030 <islower@plt>
test   %eax,%eax
je     117d <show_ciphers+0x5d>
mov    0x2ea6(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
mov    0x2eef(%rip),%eax
add    $0x1,%eax
mov    %eax,0x2ee6(%rip)
imul   $0xaaaaaaab,%eax,%eax
add    $0x2aaaaaaa,%eax
cmp    $0x55555555,%eax
lea    0xea5(%rip),%rax
lea    0xe9f(%rip),%rcx
cmovb  %rax,%rcx
lea    0xe89(%rip),%rsi
pop    %rbx
jmp    1040 <fprintf@plt>
pop    %rbx
ret

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 %struct.TYPE_3__*, %struct.TYPE_3__** %3
%6 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %5, i32 0, i32 0
%7 = load i8*, i8** %6
%8 = load i8, i8* %7
%9 = call i32 @islower(i8 zeroext %8)
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %2
br label %24
12: ; preds = %2
%13 = load i32, i32* @stderr
%14 = load %struct.TYPE_3__*, %struct.TYPE_3__** %3
%15 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %14, i32 0, i32 0
%16 = load i8*, i8** %15
%17 = load i32, i32* @show_ciphers.n
%18 = add nsw i32 %17, 1
store i32 %18, i32* @show_ciphers.n
%19 = srem i32 %18, 3
%20 = icmp ne i32 %19, 0
%21 = zext i1 %20 to i64
%22 = select i1 %20, 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)
%23 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %16, i8* %22)
br label %24
24: ; preds = %12, %11
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 = getelementptr inbounds %struct.TYPE_3__, %struct.TYPE_3__* %0, i64 0, i32 0
%4 = load i8*, i8** %3
%5 = load i8, i8* %4
%6 = tail call i32 @islower(i8 zeroext %5)
%7 = icmp eq i32 %6, 0
br i1 %7, label %17, label %8
8: ; preds = %2
%9 = load i32, i32* @stderr
%10 = load i8*, i8** %3
%11 = load i32, i32* @show_ciphers.n
%12 = add nsw i32 %11, 1
store i32 %12, i32* @show_ciphers.n
%13 = srem i32 %12, 3
%14 = icmp eq i32 %13, 0
%15 = select i1 %14, 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)
%16 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i8* %10, i8* %15)
br label %17
17: ; preds = %2, %8
ret void
}