#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(char);
int ft_put_two_int(int first, int second) {
  int first_digit;
  int second_digit;
  first_digit = first / 10;
  ft_putchar(first_digit + 48);
  second_digit = first - first_digit * 10;
  ft_putchar(second_digit + 48);
  ft_putchar(' ');
  first_digit = second / 10;
  ft_putchar(first_digit + 48);
  second_digit = second - first_digit * 10;
  ft_putchar(second_digit + 48);
  if (first != 98 || second != 99) {
    ft_putchar(',');
    ft_putchar(' ');
  }
  return (0);
}


x86 assembly (clang, -O0):
<ft_put_two_int>:
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,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <ft_putchar@plt>
mov    -0x4(%rbp),%eax
imul   $0xa,-0xc(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x30,%eax
movsbl %al,%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,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <ft_putchar@plt>
mov    -0x8(%rbp),%eax
imul   $0xa,-0xc(%rbp),%ecx
sub    %ecx,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
add    $0x30,%eax
movsbl %al,%edi
call   1030 <ft_putchar@plt>
cmpl   $0x62,-0x4(%rbp)
jne    11a8 <ft_put_two_int+0x98>
cmpl   $0x63,-0x8(%rbp)
je     11bc <ft_put_two_int+0xac>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ft_put_two_int>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r14d
movslq %edi,%r15
imul   $0x66666667,%r15,%rbp
mov    %rbp,%rax
shr    $0x3f,%rax
sar    $0x22,%rbp
add    %eax,%ebp
lea    0x30(%rbp),%eax
movsbl %al,%edi
call   1030 <ft_putchar@plt>
add    %ebp,%ebp
lea    0x0(%rbp,%rbp,4),%eax
mov    %r15d,%ecx
sub    %eax,%ecx
add    $0x30,%cl
movsbl %cl,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
movslq %r14d,%rbp
imul   $0x66666667,%rbp,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x22,%rbx
add    %eax,%ebx
lea    0x30(%rbx),%eax
movsbl %al,%edi
call   1030 <ft_putchar@plt>
add    %ebx,%ebx
lea    (%rbx,%rbx,4),%eax
sub    %eax,%ebp
add    $0x30,%bpl
movsbl %bpl,%edi
call   1030 <ft_putchar@plt>
cmp    $0x62,%r15d
jne    119e <ft_put_two_int+0x8e>
cmp    $0x63,%r14d
je     11b2 <ft_put_two_int+0xa2>
mov    $0x2c,%edi
call   1030 <ft_putchar@plt>
mov    $0x20,%edi
call   1030 <ft_putchar@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @ft_put_two_int(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%7 = load i32, i32* %3
%8 = sdiv i32 %7, 10
store i32 %8, i32* %5
%9 = load i32, i32* %5
%10 = add nsw i32 %9, 48
%11 = trunc i32 %10 to i8
%12 = call i32 @ft_putchar(i8 signext %11)
%13 = load i32, i32* %3
%14 = load i32, i32* %5
%15 = mul nsw i32 %14, 10
%16 = sub nsw i32 %13, %15
store i32 %16, i32* %6
%17 = load i32, i32* %6
%18 = add nsw i32 %17, 48
%19 = trunc i32 %18 to i8
%20 = call i32 @ft_putchar(i8 signext %19)
%21 = call i32 @ft_putchar(i8 signext 32)
%22 = load i32, i32* %4
%23 = sdiv i32 %22, 10
store i32 %23, i32* %5
%24 = load i32, i32* %5
%25 = add nsw i32 %24, 48
%26 = trunc i32 %25 to i8
%27 = call i32 @ft_putchar(i8 signext %26)
%28 = load i32, i32* %4
%29 = load i32, i32* %5
%30 = mul nsw i32 %29, 10
%31 = sub nsw i32 %28, %30
store i32 %31, i32* %6
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 48
%34 = trunc i32 %33 to i8
%35 = call i32 @ft_putchar(i8 signext %34)
%36 = load i32, i32* %3
%37 = icmp ne i32 %36, 98
br i1 %37, label %41, label %38
38: ; preds = %2
%39 = load i32, i32* %4
%40 = icmp ne i32 %39, 99
br i1 %40, label %41, label %44
41: ; preds = %38, %2
%42 = call i32 @ft_putchar(i8 signext 44)
%43 = call i32 @ft_putchar(i8 signext 32)
br label %44
44: ; preds = %41, %38
ret i32 0
}

LLVM IR (-O2):
define i32 @ft_put_two_int(i32 %0, i32 %1) {
%3 = sdiv i32 %0, 10
%4 = trunc i32 %3 to i8
%5 = add i8 %4, 48
%6 = tail call i32 @ft_putchar(i8 signext %5)
%7 = mul nsw i32 %3, -10
%8 = add i32 %7, %0
%9 = trunc i32 %8 to i8
%10 = add i8 %9, 48
%11 = tail call i32 @ft_putchar(i8 signext %10)
%12 = tail call i32 @ft_putchar(i8 signext 32)
%13 = sdiv i32 %1, 10
%14 = trunc i32 %13 to i8
%15 = add i8 %14, 48
%16 = tail call i32 @ft_putchar(i8 signext %15)
%17 = mul nsw i32 %13, -10
%18 = add i32 %17, %1
%19 = trunc i32 %18 to i8
%20 = add i8 %19, 48
%21 = tail call i32 @ft_putchar(i8 signext %20)
%22 = icmp ne i32 %0, 98
%23 = icmp ne i32 %1, 99
%24 = or i1 %22, %23
br i1 %24, label %25, label %28
25: ; preds = %2
%26 = tail call i32 @ft_putchar(i8 signext 44)
%27 = tail call i32 @ft_putchar(i8 signext 32)
br label %28
28: ; preds = %2, %25
ret i32 0
}