#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*/ Prt(char *, int, int);
int /*<<< orphan*/ c__display_gold();
int /*<<< orphan*/ clear_rc(int, int);
void bj__display_bj_game() {
  clear_rc(21, 1);
  Prt(("Your hand: "), (5) - 1, (1) - 1);
  Prt(("Dealer's hand: "), (12) - 1, (1) - 1);
  c__display_gold();
  Prt(("You may: "), (21) - 1, (1) - 1);
  Prt((" s) stand.                             h) hit."), (22) - 1, (2) - 1);
  Prt((" d) double down.                       /) split."), (23) - 1, (2) - 1);
  Prt(("^R) Redraw the screen.                 v) view the rules. "), (24) - 1,
      (2) - 1);
}


x86 assembly (clang, -O0):
<bj__display_bj_game>:
push   %rbp
mov    %rsp,%rbp
mov    $0x15,%edi
mov    $0x1,%esi
call   1050 <clear_rc@plt>
lea    0xeb6(%rip),%rdi
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <Prt@plt>
lea    0xeaf(%rip),%rdi
mov    $0xb,%esi
xor    %edx,%edx
call   1040 <Prt@plt>
mov    $0x0,%al
call   1030 <c__display_gold@plt>
lea    0xea5(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
call   1040 <Prt@plt>
lea    0xe9c(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
call   1040 <Prt@plt>
lea    0xeb5(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
call   1040 <Prt@plt>
lea    0xed0(%rip),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
call   1040 <Prt@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<bj__display_bj_game>:
push   %rax
mov    $0x15,%edi
mov    $0x1,%esi
call   1050 <clear_rc@plt>
lea    0xeb9(%rip),%rdi
mov    $0x4,%esi
xor    %edx,%edx
call   1040 <Prt@plt>
lea    0xeb2(%rip),%rdi
mov    $0xb,%esi
xor    %edx,%edx
call   1040 <Prt@plt>
xor    %eax,%eax
call   1030 <c__display_gold@plt>
lea    0xea8(%rip),%rdi
mov    $0x14,%esi
xor    %edx,%edx
call   1040 <Prt@plt>
lea    0xe9f(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
call   1040 <Prt@plt>
lea    0xeb8(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
call   1040 <Prt@plt>
lea    0xed3(%rip),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
pop    %rax
jmp    1040 <Prt@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"Your hand: \00"
@.str.1 = [16 x i8] c"Dealer's hand: \00"
@.str.2 = [10 x i8] c"You may: \00"
@.str.3 = [47 x i8] c" s) stand. h) hit.\00"
@.str.4 = [49 x i8] c" d) double down. /) split.\00"
@.str.5 = [59 x i8] c"^R) Redraw the screen. v) view the rules. \00"
define void @bj__display_bj_game() {
%1 = call i32 @clear_rc(i32 21, i32 1)
%2 = call i32 @Prt(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 4, i32 0)
%3 = call i32 @Prt(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 11, i32 0)
%4 = call i32 (...) @c__display_gold()
%5 = call i32 @Prt(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 20, i32 0)
%6 = call i32 @Prt(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), i32 21, i32 1)
%7 = call i32 @Prt(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i32 22, i32 1)
%8 = call i32 @Prt(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i32 23, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [12 x i8] c"Your hand: \00"
@.str.1 = [16 x i8] c"Dealer's hand: \00"
@.str.2 = [10 x i8] c"You may: \00"
@.str.3 = [47 x i8] c" s) stand. h) hit.\00"
@.str.4 = [49 x i8] c" d) double down. /) split.\00"
@.str.5 = [59 x i8] c"^R) Redraw the screen. v) view the rules. \00"
define void @bj__display_bj_game() {
%1 = tail call i32 @clear_rc(i32 21, i32 1)
%2 = tail call i32 @Prt(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 4, i32 0)
%3 = tail call i32 @Prt(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 11, i32 0)
%4 = tail call i32 (...) @c__display_gold()
%5 = tail call i32 @Prt(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 20, i32 0)
%6 = tail call i32 @Prt(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), i32 21, i32 1)
%7 = tail call i32 @Prt(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i32 22, i32 1)
%8 = tail call i32 @Prt(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i32 23, i32 1)
ret void
}