#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*/ numbers_digit_xy_condensed(char, char, char);
void numbers_number_xy_condensed(unsigned int value, char x, char y) {
  char digit;
  while (value > 0) {
    digit = value % 10;
    value /= 10;
    numbers_digit_xy_condensed(digit, x, y);
    x -= 2;
  }
}


x86 assembly (clang, -O0):
<numbers_number_xy_condensed>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dl,%al
mov    %sil,%cl
mov    %edi,-0x4(%rbp)
mov    %cl,-0x5(%rbp)
mov    %al,-0x6(%rbp)
cmpl   $0x0,-0x4(%rbp)
jbe    1174 <numbers_number_xy_condensed+0x64>
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
xor    %edx,%edx
div    %ecx
mov    %dl,%al
mov    %al,-0x7(%rbp)
mov    -0x4(%rbp),%eax
mov    $0xa,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x4(%rbp)
mov    -0x7(%rbp),%cl
mov    -0x5(%rbp),%al
movsbl %cl,%edi
movsbl %al,%esi
movsbl -0x6(%rbp),%edx
call   1030 <numbers_digit_xy_condensed@plt>
movsbl -0x5(%rbp),%eax
sub    $0x2,%eax
mov    %al,-0x5(%rbp)
jmp    1126 <numbers_number_xy_condensed+0x16>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<numbers_number_xy_condensed>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
test   %edi,%edi
je     1160 <numbers_number_xy_condensed+0x50>
mov    %esi,%ebx
mov    %edi,%r12d
mov    $0xcccccccd,%r15d
movsbl %dl,%r14d
nopl   0x0(%rax,%rax,1)
mov    %r12d,%ebp
imul   %r15,%rbp
shr    $0x23,%rbp
lea    0x0(%rbp,%rbp,1),%eax
lea    (%rax,%rax,4),%eax
mov    %r12d,%edi
sub    %eax,%edi
movsbl %bl,%ebx
mov    %ebx,%esi
mov    %r14d,%edx
call   1030 <numbers_digit_xy_condensed@plt>
add    $0xfe,%bl
cmp    $0x9,%r12d
mov    %ebp,%r12d
ja     1130 <numbers_number_xy_condensed+0x20>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @numbers_number_xy_condensed(i32 %0, i8 signext %1, i8 signext %2) {
%4 = alloca i32
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
store i32 %0, i32* %4
store i8 %1, i8* %5
store i8 %2, i8* %6
br label %8
8: ; preds = %11, %3
%9 = load i32, i32* %4
%10 = icmp ugt i32 %9, 0
br i1 %10, label %11, label %25
11: ; preds = %8
%12 = load i32, i32* %4
%13 = urem i32 %12, 10
%14 = trunc i32 %13 to i8
store i8 %14, i8* %7
%15 = load i32, i32* %4
%16 = udiv i32 %15, 10
store i32 %16, i32* %4
%17 = load i8, i8* %7
%18 = load i8, i8* %5
%19 = load i8, i8* %6
%20 = call i32 @numbers_digit_xy_condensed(i8 signext %17, i8 signext %18, i8 signext %19)
%21 = load i8, i8* %5
%22 = sext i8 %21 to i32
%23 = sub nsw i32 %22, 2
%24 = trunc i32 %23 to i8
store i8 %24, i8* %5
br label %8
25: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @numbers_number_xy_condensed(i32 %0, i8 signext %1, i8 signext %2) {
%4 = icmp eq i32 %0, 0
br i1 %4, label %14, label %5
5: ; preds = %3, %5
%6 = phi i32 [ %10, %5 ], [ %0, %3 ]
%7 = phi i8 [ %12, %5 ], [ %1, %3 ]
%8 = urem i32 %6, 10
%9 = trunc i32 %8 to i8
%10 = udiv i32 %6, 10
%11 = tail call i32 @numbers_digit_xy_condensed(i8 signext %9, i8 signext %7, i8 signext %2)
%12 = add i8 %7, -2
%13 = icmp ult i32 %6, 10
br i1 %13, label %14, label %5
14: ; preds = %5, %3
ret void
}