#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 _fat_ptr {
  int dummy;
};
struct Cyc_Lower_Env {
  int dummy;
};
struct Cyc_Absyn_Stmt {
  int dummy;
};

/* Variables and functions */
struct Cyc_Absyn_Stmt *
Cyc_Absyn_label_stmt(struct _fat_ptr *, struct Cyc_Absyn_Stmt *, unsigned int);
struct Cyc_Absyn_Stmt *Cyc_Absyn_skip_stmt(unsigned int);
int /*<<< orphan*/ Cyc_Lower_emit_stmt(struct Cyc_Lower_Env *,
                                       struct Cyc_Absyn_Stmt *);
void Cyc_Lower_emit_label(struct Cyc_Lower_Env *env, struct _fat_ptr *label,
                          unsigned loc) {
  struct Cyc_Lower_Env *_T0;
  struct _fat_ptr *_T1;
  struct Cyc_Absyn_Stmt *_T2;
  unsigned _T3;
  struct Cyc_Absyn_Stmt *_T4;
  _T0 = env;
  _T1 = label;
  _T2 = Cyc_Absyn_skip_stmt(0U);
  _T3 = loc;
  _T4 = Cyc_Absyn_label_stmt(_T1, _T2, _T3);
  Cyc_Lower_emit_stmt(_T0, _T4);
}


x86 assembly (clang, -O0):
<Cyc_Lower_emit_label>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
xor    %edi,%edi
call   1050 <Cyc_Absyn_skip_stmt@plt>
mov    %rax,-0x30(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x34(%rbp),%edx
call   1040 <Cyc_Absyn_label_stmt@plt>
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x40(%rbp),%rsi
call   1030 <Cyc_Lower_emit_stmt@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_Lower_emit_label>:
push   %rbp
push   %r14
push   %rbx
mov    %edx,%ebp
mov    %rsi,%rbx
mov    %rdi,%r14
xor    %edi,%edi
call   1050 <Cyc_Absyn_skip_stmt@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
mov    %ebp,%edx
call   1040 <Cyc_Absyn_label_stmt@plt>
mov    %r14,%rdi
mov    %rax,%rsi
pop    %rbx
pop    %r14
pop    %rbp
jmp    1030 <Cyc_Lower_emit_stmt@plt>

LLVM IR (-O0):
%struct.Cyc_Lower_Env = type { i32 }
%struct._fat_ptr = type { i32 }
%struct.Cyc_Absyn_Stmt = type { i32 }
define void @Cyc_Lower_emit_label(%struct.Cyc_Lower_Env* %0, %struct._fat_ptr* %1, i32 %2) {
%4 = alloca %struct.Cyc_Lower_Env*
%5 = alloca %struct._fat_ptr*
%6 = alloca i32
%7 = alloca %struct.Cyc_Lower_Env*
%8 = alloca %struct._fat_ptr*
%9 = alloca %struct.Cyc_Absyn_Stmt*
%10 = alloca i32
%11 = alloca %struct.Cyc_Absyn_Stmt*
store %struct.Cyc_Lower_Env* %0, %struct.Cyc_Lower_Env** %4
store %struct._fat_ptr* %1, %struct._fat_ptr** %5
store i32 %2, i32* %6
%12 = load %struct.Cyc_Lower_Env*, %struct.Cyc_Lower_Env** %4
store %struct.Cyc_Lower_Env* %12, %struct.Cyc_Lower_Env** %7
%13 = load %struct._fat_ptr*, %struct._fat_ptr** %5
store %struct._fat_ptr* %13, %struct._fat_ptr** %8
%14 = call %struct.Cyc_Absyn_Stmt* @Cyc_Absyn_skip_stmt(i32 0)
store %struct.Cyc_Absyn_Stmt* %14, %struct.Cyc_Absyn_Stmt** %9
%15 = load i32, i32* %6
store i32 %15, i32* %10
%16 = load %struct._fat_ptr*, %struct._fat_ptr** %8
%17 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %9
%18 = load i32, i32* %10
%19 = call %struct.Cyc_Absyn_Stmt* @Cyc_Absyn_label_stmt(%struct._fat_ptr* %16, %struct.Cyc_Absyn_Stmt* %17, i32 %18)
store %struct.Cyc_Absyn_Stmt* %19, %struct.Cyc_Absyn_Stmt** %11
%20 = load %struct.Cyc_Lower_Env*, %struct.Cyc_Lower_Env** %7
%21 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %11
%22 = call i32 @Cyc_Lower_emit_stmt(%struct.Cyc_Lower_Env* %20, %struct.Cyc_Absyn_Stmt* %21)
ret void
}

LLVM IR (-O2):
%struct.Cyc_Lower_Env = type { i32 }
%struct._fat_ptr = type { i32 }
%struct.Cyc_Absyn_Stmt = type { i32 }
define void @Cyc_Lower_emit_label(%struct.Cyc_Lower_Env* %0, %struct._fat_ptr* %1, i32 %2) {
%4 = tail call %struct.Cyc_Absyn_Stmt* @Cyc_Absyn_skip_stmt(i32 0)
%5 = tail call %struct.Cyc_Absyn_Stmt* @Cyc_Absyn_label_stmt(%struct._fat_ptr* %1, %struct.Cyc_Absyn_Stmt* %4, i32 %2)
%6 = tail call i32 @Cyc_Lower_emit_stmt(%struct.Cyc_Lower_Env* %0, %struct.Cyc_Absyn_Stmt* %5)
ret void
}