#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
void google_map_output_rectangle(FILE *output_file, char *southwest_latitude,
                                 char *southwest_longitude,
                                 char *northeast_latitude,
                                 char *northeast_longitude) {
  fprintf(output_file,
          "	var bounds = new google.maps.LatLngBounds(\n"
          "		new google.maps.LatLng(%s,%s),\n"
          "		new google.maps.LatLng(%s,%s)\n"
          "	);\n"
          "\n"
          "	rectangle = new google.maps.Rectangle({\n"
          "		bounds: bounds,\n"
          "		editable: true,\n"
          "		draggable: true\n"
          "	});\n"
          "\n"
          "	rectangle.setMap(map);\n\n",
          southwest_latitude, southwest_longitude, northeast_latitude,
          northeast_longitude);
  fprintf(output_file, "	google.maps.event.addListener(rectangle, "
                       "'bounds_changed', rectangle_bounds_changed);\n");
}


x86 assembly (clang, -O0):
<google_map_output_rectangle>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
mov    -0x28(%rbp),%r9
lea    0xeb9(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    -0x8(%rbp),%rdi
lea    0xf98(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<google_map_output_rectangle>:
push   %rbx
mov    %r8,%r9
mov    %rcx,%r8
mov    %rdx,%rcx
mov    %rsi,%rdx
mov    %rdi,%rbx
lea    0xec9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
lea    0xfac(%rip),%rdi
mov    $0x57,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
pop    %rbx
jmp    1040 <fwrite@plt>

LLVM IR (-O0):
@.str = [241 x i8] c"\09var bounds = new google.maps.LatLngBounds(\0A\09\09new google.maps.LatLng(%s,%s),\0A\09\09new google.maps.LatLng(%s,%s)\0A\09);\0A\0A\09rectangle = new google.maps.Rectangle({\0A\09\09bounds: bounds,\0A\09\09editable: true,\0A\09\09draggable: true\0A\09});\0A\0A\09rectangle.setMap(map);\0A\0A\00"
@.str.1 = [88 x i8] c"\09google.maps.event.addListener(rectangle, 'bounds_changed', rectangle_bounds_changed);\0A\00"
define void @google_map_output_rectangle(i32* %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
store i32* %0, i32** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8* %4, i8** %10
%11 = load i32*, i32** %6
%12 = load i8*, i8** %7
%13 = load i8*, i8** %8
%14 = load i8*, i8** %9
%15 = load i8*, i8** %10
%16 = call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([241 x i8], [241 x i8]* @.str, i64 0, i64 0), i8* %12, i8* %13, i8* %14, i8* %15)
%17 = load i32*, i32** %6
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [241 x i8] c"\09var bounds = new google.maps.LatLngBounds(\0A\09\09new google.maps.LatLng(%s,%s),\0A\09\09new google.maps.LatLng(%s,%s)\0A\09);\0A\0A\09rectangle = new google.maps.Rectangle({\0A\09\09bounds: bounds,\0A\09\09editable: true,\0A\09\09draggable: true\0A\09});\0A\0A\09rectangle.setMap(map);\0A\0A\00"
@.str.1 = [88 x i8] c"\09google.maps.event.addListener(rectangle, 'bounds_changed', rectangle_bounds_changed);\0A\00"
define void @google_map_output_rectangle(i32* nocapture %0, i8* %1, i8* %2, i8* %3, i8* %4) {
%6 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %0, i8* getelementptr inbounds ([241 x i8], [241 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %2, i8* %3, i8* %4)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.1, i64 0, i64 0), i64 87, i64 1, i32* %0)
ret void
}