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

/* Variables and functions */
struct Cyc_Absyn_Stmt *Cyc_Lower_assign_it(struct Cyc_Absyn_Exp *,
                                           struct Cyc_Absyn_Exp *,
                                           unsigned int);
int /*<<< orphan*/ Cyc_Lower_emit_stmt(struct Cyc_Lower_Env *,
                                       struct Cyc_Absyn_Stmt *);
void Cyc_Lower_emit_assign(struct Cyc_Lower_Env *env, struct Cyc_Absyn_Exp *lhs,
                           struct Cyc_Absyn_Exp *rhs, unsigned loc) {
  struct Cyc_Lower_Env *_T0;
  struct Cyc_Absyn_Stmt *_T1;
  _T0 = env;
  _T1 = Cyc_Lower_assign_it(lhs, rhs, loc);
  Cyc_Lower_emit_stmt(_T0, _T1);
}


x86 assembly (clang, -O0):
<Cyc_Lower_emit_assign>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1030 <Cyc_Lower_assign_it@plt>
mov    %rax,-0x30(%rbp)
mov    -0x28(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1040 <Cyc_Lower_emit_stmt@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_Lower_emit_assign>:
push   %rbx
mov    %rdi,%rbx
mov    %rsi,%rdi
mov    %rdx,%rsi
mov    %ecx,%edx
call   1030 <Cyc_Lower_assign_it@plt>
mov    %rbx,%rdi
mov    %rax,%rsi
pop    %rbx
jmp    1040 <Cyc_Lower_emit_stmt@plt>

LLVM IR (-O0):
%struct.Cyc_Lower_Env = type { i32 }
%struct.Cyc_Absyn_Exp = type { i32 }
%struct.Cyc_Absyn_Stmt = type { i32 }
define void @Cyc_Lower_emit_assign(%struct.Cyc_Lower_Env* %0, %struct.Cyc_Absyn_Exp* %1, %struct.Cyc_Absyn_Exp* %2, i32 %3) {
%5 = alloca %struct.Cyc_Lower_Env*
%6 = alloca %struct.Cyc_Absyn_Exp*
%7 = alloca %struct.Cyc_Absyn_Exp*
%8 = alloca i32
%9 = alloca %struct.Cyc_Lower_Env*
%10 = alloca %struct.Cyc_Absyn_Stmt*
store %struct.Cyc_Lower_Env* %0, %struct.Cyc_Lower_Env** %5
store %struct.Cyc_Absyn_Exp* %1, %struct.Cyc_Absyn_Exp** %6
store %struct.Cyc_Absyn_Exp* %2, %struct.Cyc_Absyn_Exp** %7
store i32 %3, i32* %8
%11 = load %struct.Cyc_Lower_Env*, %struct.Cyc_Lower_Env** %5
store %struct.Cyc_Lower_Env* %11, %struct.Cyc_Lower_Env** %9
%12 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %6
%13 = load %struct.Cyc_Absyn_Exp*, %struct.Cyc_Absyn_Exp** %7
%14 = load i32, i32* %8
%15 = call %struct.Cyc_Absyn_Stmt* @Cyc_Lower_assign_it(%struct.Cyc_Absyn_Exp* %12, %struct.Cyc_Absyn_Exp* %13, i32 %14)
store %struct.Cyc_Absyn_Stmt* %15, %struct.Cyc_Absyn_Stmt** %10
%16 = load %struct.Cyc_Lower_Env*, %struct.Cyc_Lower_Env** %9
%17 = load %struct.Cyc_Absyn_Stmt*, %struct.Cyc_Absyn_Stmt** %10
%18 = call i32 @Cyc_Lower_emit_stmt(%struct.Cyc_Lower_Env* %16, %struct.Cyc_Absyn_Stmt* %17)
ret void
}

LLVM IR (-O2):
%struct.Cyc_Lower_Env = type { i32 }
%struct.Cyc_Absyn_Exp = type { i32 }
%struct.Cyc_Absyn_Stmt = type { i32 }
define void @Cyc_Lower_emit_assign(%struct.Cyc_Lower_Env* %0, %struct.Cyc_Absyn_Exp* %1, %struct.Cyc_Absyn_Exp* %2, i32 %3) {
%5 = tail call %struct.Cyc_Absyn_Stmt* @Cyc_Lower_assign_it(%struct.Cyc_Absyn_Exp* %1, %struct.Cyc_Absyn_Exp* %2, i32 %3)
%6 = tail call i32 @Cyc_Lower_emit_stmt(%struct.Cyc_Lower_Env* %0, %struct.Cyc_Absyn_Stmt* %5)
ret void
}