#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*/ liefere_lottoziehung_zufaellig(char *, int, char, char);
void liefere_lottoziehungen_zufaellig(int anzahl_lottoziehungen,
                                      int anzahl_lottozahlen,
                                      char **lottoziehungen, char min,
                                      char max) {
  for (int lottoziehung = 0; lottoziehung < anzahl_lottoziehungen;
       lottoziehung++) {
    liefere_lottoziehung_zufaellig(lottoziehungen[lottoziehung],
                                   anzahl_lottozahlen, min, max);
  }
}


x86 assembly (clang, -O0):
<liefere_lottoziehungen_zufaellig>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %r8b,%al
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %cl,-0x11(%rbp)
mov    %al,-0x12(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    116a <liefere_lottoziehungen_zufaellig+0x5a>
mov    -0x10(%rbp),%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x8(%rbp),%esi
mov    -0x11(%rbp),%al
movsbl %al,%edx
movsbl -0x12(%rbp),%ecx
call   1030 <liefere_lottoziehung_zufaellig@plt>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1132 <liefere_lottoziehungen_zufaellig+0x22>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<liefere_lottoziehungen_zufaellig>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %edi,%edi
jle    115a <liefere_lottoziehungen_zufaellig+0x4a>
mov    %rdx,%r14
mov    %esi,%r15d
mov    %edi,%r12d
xor    %ebx,%ebx
movsbl %cl,%r13d
movsbl %r8b,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%r14,%rbx,8),%rdi
mov    %r15d,%esi
mov    %r13d,%edx
mov    %ebp,%ecx
call   1030 <liefere_lottoziehung_zufaellig@plt>
add    $0x1,%rbx
cmp    %rbx,%r12
jne    1140 <liefere_lottoziehungen_zufaellig+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @liefere_lottoziehungen_zufaellig(i32 %0, i32 %1, i8** %2, i8 signext %3, i8 signext %4) {
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i8
%10 = alloca i8
%11 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i8** %2, i8*** %8
store i8 %3, i8* %9
store i8 %4, i8* %10
store i32 0, i32* %11
br label %12
12: ; preds = %26, %5
%13 = load i32, i32* %11
%14 = load i32, i32* %6
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %29
16: ; preds = %12
%17 = load i8**, i8*** %8
%18 = load i32, i32* %11
%19 = sext i32 %18 to i64
%20 = getelementptr inbounds i8*, i8** %17, i64 %19
%21 = load i8*, i8** %20
%22 = load i32, i32* %7
%23 = load i8, i8* %9
%24 = load i8, i8* %10
%25 = call i32 @liefere_lottoziehung_zufaellig(i8* %21, i32 %22, i8 signext %23, i8 signext %24)
br label %26
26: ; preds = %16
%27 = load i32, i32* %11
%28 = add nsw i32 %27, 1
store i32 %28, i32* %11
br label %12
29: ; preds = %12
ret void
}

LLVM IR (-O2):
define void @liefere_lottoziehungen_zufaellig(i32 %0, i32 %1, i8** nocapture %2, i8 signext %3, i8 signext %4) {
%6 = icmp sgt i32 %0, 0
br i1 %6, label %7, label %9
7: ; preds = %5
%8 = zext i32 %0 to i64
br label %10
9: ; preds = %10, %5
ret void
10: ; preds = %7, %10
%11 = phi i64 [ 0, %7 ], [ %15, %10 ]
%12 = getelementptr inbounds i8*, i8** %2, i64 %11
%13 = load i8*, i8** %12
%14 = tail call i32 @liefere_lottoziehung_zufaellig(i8* %13, i32 %1, i8 signext %3, i8 signext %4)
%15 = add nuw nsw i64 %11, 1
%16 = icmp eq i64 %15, %8
br i1 %16, label %9, label %10
}