#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 */
struct pe_as_rd_pp {
  int dummy;
};

/* Variables and functions */
int pe_as_rd_pp_out_char(struct pe_as_rd_pp *, char);
int pe_as_rd_pp_display_indentation(struct pe_as_rd_pp *pp, size_t n) {
  int err;
  for (; n != 0; n--) {
    err = pe_as_rd_pp_out_char(pp, ' ');
    if (err)
      return err;
  }
  return 0;
}


x86 assembly (clang, -O0):
<pe_as_rd_pp_display_indentation>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1167 <pe_as_rd_pp_display_indentation+0x57>
mov    -0x10(%rbp),%rdi
mov    $0x20,%esi
call   1030 <pe_as_rd_pp_out_char@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1151 <pe_as_rd_pp_display_indentation+0x41>
mov    -0x1c(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    116e <pe_as_rd_pp_display_indentation+0x5e>
jmp    1156 <pe_as_rd_pp_display_indentation+0x46>
mov    -0x18(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x18(%rbp)
jmp    1120 <pe_as_rd_pp_display_indentation+0x10>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pe_as_rd_pp_display_indentation>:
push   %rbp
push   %r14
push   %rbx
xor    %r14d,%r14d
test   %rsi,%rsi
je     114c <pe_as_rd_pp_display_indentation+0x3c>
mov    %rsi,%rbx
mov    %rdi,%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbp,%rdi
mov    $0x20,%esi
call   1030 <pe_as_rd_pp_out_char@plt>
test   %eax,%eax
jne    1149 <pe_as_rd_pp_display_indentation+0x39>
add    $0xffffffffffffffff,%rbx
jne    1130 <pe_as_rd_pp_display_indentation+0x20>
jmp    114c <pe_as_rd_pp_display_indentation+0x3c>
mov    %eax,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
%struct.pe_as_rd_pp = type { i32 }
define i32 @pe_as_rd_pp_display_indentation(%struct.pe_as_rd_pp* %0, i64 %1) {
%3 = alloca i32
%4 = alloca %struct.pe_as_rd_pp*
%5 = alloca i64
%6 = alloca i32
store %struct.pe_as_rd_pp* %0, %struct.pe_as_rd_pp** %4
store i64 %1, i64* %5
br label %7
7: ; preds = %18, %2
%8 = load i64, i64* %5
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %21
10: ; preds = %7
%11 = load %struct.pe_as_rd_pp*, %struct.pe_as_rd_pp** %4
%12 = call i32 @pe_as_rd_pp_out_char(%struct.pe_as_rd_pp* %11, i8 signext 32)
store i32 %12, i32* %6
%13 = load i32, i32* %6
%14 = icmp ne i32 %13, 0
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = load i32, i32* %6
store i32 %16, i32* %3
br label %22
17: ; preds = %10
br label %18
18: ; preds = %17
%19 = load i64, i64* %5
%20 = add i64 %19, -1
store i64 %20, i64* %5
br label %7
21: ; preds = %7
store i32 0, i32* %3
br label %22
22: ; preds = %21, %15
%23 = load i32, i32* %3
ret i32 %23
}

LLVM IR (-O2):
%struct.pe_as_rd_pp = type { i32 }
define i32 @pe_as_rd_pp_display_indentation(%struct.pe_as_rd_pp* %0, i64 %1) {
%3 = icmp eq i64 %1, 0
br i1 %3, label %11, label %6
4: ; preds = %6
%5 = icmp eq i64 %10, 0
br i1 %5, label %11, label %6
6: ; preds = %2, %4
%7 = phi i64 [ %10, %4 ], [ %1, %2 ]
%8 = tail call i32 @pe_as_rd_pp_out_char(%struct.pe_as_rd_pp* %0, i8 signext 32)
%9 = icmp eq i32 %8, 0
%10 = add i64 %7, -1
br i1 %9, label %4, label %11
11: ; preds = %6, %4, %2
%12 = phi i32 [ 0, %2 ], [ 0, %4 ], [ %8, %6 ]
ret i32 %12
}