#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 */

/* Variables and functions */
int /*<<< orphan*/ putchar(int);
void space(int ix1, int iy1, int ix2, int iy2) {
  putchar('s');
  {
    putchar(ix1 & 255);
    putchar((ix1 >> 8) & 255);
  };
  {
    putchar(iy1 & 255);
    putchar((iy1 >> 8) & 255);
  };
  {
    putchar(ix2 & 255);
    putchar((ix2 >> 8) & 255);
  };
  {
    putchar(iy2 & 255);
    putchar((iy2 >> 8) & 255);
  };
}


x86 assembly (clang, -O0):
<space>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    $0x73,%edi
call   1030 <putchar@plt>
mov    -0x4(%rbp),%edi
and    $0xff,%edi
call   1030 <putchar@plt>
mov    -0x4(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%edi
and    $0xff,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%edi
and    $0xff,%edi
call   1030 <putchar@plt>
mov    -0xc(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%edi
and    $0xff,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%edi
sar    $0x8,%edi
and    $0xff,%edi
call   1030 <putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<space>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebp
mov    %edi,%ebx
mov    $0x73,%edi
call   1030 <putchar@plt>
movzbl %bl,%edi
call   1030 <putchar@plt>
movzbl %bh,%edi
call   1030 <putchar@plt>
mov    %ebp,%ebx
movzbl %bl,%edi
call   1030 <putchar@plt>
movzbl %bh,%edi
call   1030 <putchar@plt>
mov    %r15d,%ebx
movzbl %bl,%edi
call   1030 <putchar@plt>
movzbl %bh,%edi
call   1030 <putchar@plt>
mov    %r14d,%ebx
movzbl %bl,%edi
call   1030 <putchar@plt>
movzbl %bh,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

LLVM IR (-O0):
define void @space(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = call i32 @putchar(i32 115)
%10 = load i32, i32* %5
%11 = and i32 %10, 255
%12 = call i32 @putchar(i32 %11)
%13 = load i32, i32* %5
%14 = ashr i32 %13, 8
%15 = and i32 %14, 255
%16 = call i32 @putchar(i32 %15)
%17 = load i32, i32* %6
%18 = and i32 %17, 255
%19 = call i32 @putchar(i32 %18)
%20 = load i32, i32* %6
%21 = ashr i32 %20, 8
%22 = and i32 %21, 255
%23 = call i32 @putchar(i32 %22)
%24 = load i32, i32* %7
%25 = and i32 %24, 255
%26 = call i32 @putchar(i32 %25)
%27 = load i32, i32* %7
%28 = ashr i32 %27, 8
%29 = and i32 %28, 255
%30 = call i32 @putchar(i32 %29)
%31 = load i32, i32* %8
%32 = and i32 %31, 255
%33 = call i32 @putchar(i32 %32)
%34 = load i32, i32* %8
%35 = ashr i32 %34, 8
%36 = and i32 %35, 255
%37 = call i32 @putchar(i32 %36)
ret void
}

LLVM IR (-O2):
define void @space(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = tail call i32 @putchar(i32 115)
%6 = and i32 %0, 255
%7 = tail call i32 @putchar(i32 %6)
%8 = lshr i32 %0, 8
%9 = and i32 %8, 255
%10 = tail call i32 @putchar(i32 %9)
%11 = and i32 %1, 255
%12 = tail call i32 @putchar(i32 %11)
%13 = lshr i32 %1, 8
%14 = and i32 %13, 255
%15 = tail call i32 @putchar(i32 %14)
%16 = and i32 %2, 255
%17 = tail call i32 @putchar(i32 %16)
%18 = lshr i32 %2, 8
%19 = and i32 %18, 255
%20 = tail call i32 @putchar(i32 %19)
%21 = and i32 %3, 255
%22 = tail call i32 @putchar(i32 %21)
%23 = lshr i32 %3, 8
%24 = and i32 %23, 255
%25 = tail call i32 @putchar(i32 %24)
ret void
}