#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*/ ft_putchar(int);
void output(int x, int y) {
  ft_putchar(x / 10 + 48);
  ft_putchar(x % 10 + 48);
  ft_putchar(' ');
  ft_putchar(y / 10 + 48);
  ft_putchar(y % 10 + 48);
}


x86 assembly (clang, -O0):
<output>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
add    $0x30,%edi
call   1030 <ft_putchar@plt>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
add    $0x30,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%edi
add    $0x30,%edi
call   1030 <ft_putchar@plt>
mov    -0x8(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %edx,%edi
add    $0x30,%edi
call   1030 <ft_putchar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<output>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
movslq %edi,%r15
imul   $0x66666667,%r15,%rbp
mov    %rbp,%rbx
shr    $0x3f,%rbx
sar    $0x22,%rbp
lea    (%rbx,%rbp,1),%edi
add    $0x30,%edi
call   1030 <ft_putchar@plt>
add    %ebx,%ebp
add    %ebp,%ebp
lea    0x0(%rbp,%rbp,4),%eax
neg    %eax
lea    (%r15,%rax,1),%edi
add    $0x30,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
movslq %r14d,%r14
imul   $0x66666667,%r14,%rbp
mov    %rbp,%rbx
shr    $0x3f,%rbx
sar    $0x22,%rbp
lea    (%rbx,%rbp,1),%edi
add    $0x30,%edi
call   1030 <ft_putchar@plt>
add    %ebx,%ebp
add    %ebp,%ebp
lea    0x0(%rbp,%rbp,4),%eax
neg    %eax
lea    (%r14,%rax,1),%edi
add    $0x30,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <ft_putchar@plt>

LLVM IR (-O0):
define void @output(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%5 = load i32, i32* %3
%6 = sdiv i32 %5, 10
%7 = add nsw i32 %6, 48
%8 = call i32 @ft_putchar(i32 %7)
%9 = load i32, i32* %3
%10 = srem i32 %9, 10
%11 = add nsw i32 %10, 48
%12 = call i32 @ft_putchar(i32 %11)
%13 = call i32 @ft_putchar(i32 32)
%14 = load i32, i32* %4
%15 = sdiv i32 %14, 10
%16 = add nsw i32 %15, 48
%17 = call i32 @ft_putchar(i32 %16)
%18 = load i32, i32* %4
%19 = srem i32 %18, 10
%20 = add nsw i32 %19, 48
%21 = call i32 @ft_putchar(i32 %20)
ret void
}

LLVM IR (-O2):
define void @output(i32 %0, i32 %1) {
%3 = sdiv i32 %0, 10
%4 = add nsw i32 %3, 48
%5 = tail call i32 @ft_putchar(i32 %4)
%6 = srem i32 %0, 10
%7 = add nsw i32 %6, 48
%8 = tail call i32 @ft_putchar(i32 %7)
%9 = tail call i32 @ft_putchar(i32 32)
%10 = sdiv i32 %1, 10
%11 = add nsw i32 %10, 48
%12 = tail call i32 @ft_putchar(i32 %11)
%13 = srem i32 %1, 10
%14 = add nsw i32 %13, 48
%15 = tail call i32 @ft_putchar(i32 %14)
ret void
}