#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*/ WyczyscGrafike();
int /*<<< orphan*/ WyczyscTekst();
int /*<<< orphan*/ przemiescPaletke(unsigned char *, unsigned int);
int /*<<< orphan*/ rysujObramowaniePlanszy(unsigned char *);
int /*<<< orphan*/ rysujPilke(unsigned char *, unsigned int, unsigned int);
int /*<<< orphan*/ rysujPlanszeBlokow(unsigned char *);
int /*<<< orphan*/ zerujBufor(unsigned char *);
void InicjujGre(unsigned int PilkaX, unsigned int PilkaY, unsigned int PaletkaX,
                unsigned int PaletkaY, unsigned char *Lbuffer) {
  WyczyscGrafike();
  WyczyscTekst();
  zerujBufor(Lbuffer);
  rysujPlanszeBlokow(Lbuffer);
  rysujObramowaniePlanszy(Lbuffer);
  rysujPilke(Lbuffer, PilkaX, PilkaY);
  przemiescPaletke(Lbuffer, PaletkaX);
}


x86 assembly (clang, -O0):
<InicjujGre>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    $0x0,%al
call   1090 <WyczyscGrafike@plt>
mov    $0x0,%al
call   1060 <WyczyscTekst@plt>
mov    -0x18(%rbp),%rdi
call   1030 <zerujBufor@plt>
mov    -0x18(%rbp),%rdi
call   1040 <rysujPlanszeBlokow@plt>
mov    -0x18(%rbp),%rdi
call   1080 <rysujObramowaniePlanszy@plt>
mov    -0x18(%rbp),%rdi
mov    -0x4(%rbp),%esi
mov    -0x8(%rbp),%edx
call   1070 <rysujPilke@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%esi
call   1050 <przemiescPaletke@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<InicjujGre>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %r8,%rbx
mov    %edx,%r14d
mov    %esi,%r15d
mov    %edi,%ebp
xor    %eax,%eax
call   1090 <WyczyscGrafike@plt>
xor    %eax,%eax
call   1060 <WyczyscTekst@plt>
mov    %rbx,%rdi
call   1030 <zerujBufor@plt>
mov    %rbx,%rdi
call   1040 <rysujPlanszeBlokow@plt>
mov    %rbx,%rdi
call   1080 <rysujObramowaniePlanszy@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
mov    %r15d,%edx
call   1070 <rysujPilke@plt>
mov    %rbx,%rdi
mov    %r14d,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <przemiescPaletke@plt>

LLVM IR (-O0):
define void @InicjujGre(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%11 = call i32 (...) @WyczyscGrafike()
%12 = call i32 (...) @WyczyscTekst()
%13 = load i8*, i8** %10
%14 = call i32 @zerujBufor(i8* %13)
%15 = load i8*, i8** %10
%16 = call i32 @rysujPlanszeBlokow(i8* %15)
%17 = load i8*, i8** %10
%18 = call i32 @rysujObramowaniePlanszy(i8* %17)
%19 = load i8*, i8** %10
%20 = load i32, i32* %6
%21 = load i32, i32* %7
%22 = call i32 @rysujPilke(i8* %19, i32 %20, i32 %21)
%23 = load i8*, i8** %10
%24 = load i32, i32* %8
%25 = call i32 @przemiescPaletke(i8* %23, i32 %24)
ret void
}

LLVM IR (-O2):
define void @InicjujGre(i32 %0, i32 %1, i32 %2, i32 %3, i8* %4) {
%6 = tail call i32 (...) @WyczyscGrafike()
%7 = tail call i32 (...) @WyczyscTekst()
%8 = tail call i32 @zerujBufor(i8* %4)
%9 = tail call i32 @rysujPlanszeBlokow(i8* %4)
%10 = tail call i32 @rysujObramowaniePlanszy(i8* %4)
%11 = tail call i32 @rysujPilke(i8* %4, i32 %0, i32 %1)
%12 = tail call i32 @przemiescPaletke(i8* %4, i32 %2)
ret void
}