#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 */
typedef struct Athena_Image const Athena_Image;

/* Variables and functions */
int /*<<< orphan*/ Athena_LowerBlitScanLine(struct Athena_Image const *,
                                            struct Athena_Image const *,
                                            unsigned int, int /*<<< orphan*/,
                                            unsigned int, unsigned int);
int /*<<< orphan*/ Athena_LowerBlitWidth(struct Athena_Image const *,
                                         struct Athena_Image const *,
                                         unsigned int);
int /*<<< orphan*/ assert(struct Athena_Image const *);
void Athena_BlitScanLine(const struct Athena_Image *src,
                         struct Athena_Image *dst, unsigned line, unsigned x,
                         unsigned y) {
  assert(src);
  assert(dst);
  Athena_LowerBlitScanLine(src, dst, line, Athena_LowerBlitWidth(src, dst, x),
                           x, y);
}


x86 assembly (clang, -O0):
<Athena_BlitScanLine>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <assert@plt>
mov    -0x10(%rbp),%rdi
call   1040 <assert@plt>
mov    -0x8(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x28(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
call   1030 <Athena_LowerBlitWidth@plt>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x20(%rbp),%edx
mov    %eax,%ecx
mov    -0x18(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
call   1050 <Athena_LowerBlitScanLine@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Athena_BlitScanLine>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8d,%r14d
mov    %ecx,%r12d
mov    %edx,%r15d
mov    %rsi,%rbx
mov    %rdi,%rbp
call   1040 <assert@plt>
mov    %rbx,%rdi
call   1040 <assert@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r12d,%edx
call   1030 <Athena_LowerBlitWidth@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
mov    %eax,%ecx
mov    %r12d,%r8d
mov    %r14d,%r9d
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1050 <Athena_LowerBlitScanLine@plt>

LLVM IR (-O0):
%struct.Athena_Image = type opaque
define void @Athena_BlitScanLine(%struct.Athena_Image* %0, %struct.Athena_Image* %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca %struct.Athena_Image*
%7 = alloca %struct.Athena_Image*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store %struct.Athena_Image* %0, %struct.Athena_Image** %6
store %struct.Athena_Image* %1, %struct.Athena_Image** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
%11 = load %struct.Athena_Image*, %struct.Athena_Image** %6
%12 = call i32 @assert(%struct.Athena_Image* %11)
%13 = load %struct.Athena_Image*, %struct.Athena_Image** %7
%14 = call i32 @assert(%struct.Athena_Image* %13)
%15 = load %struct.Athena_Image*, %struct.Athena_Image** %6
%16 = load %struct.Athena_Image*, %struct.Athena_Image** %7
%17 = load i32, i32* %8
%18 = load %struct.Athena_Image*, %struct.Athena_Image** %6
%19 = load %struct.Athena_Image*, %struct.Athena_Image** %7
%20 = load i32, i32* %9
%21 = call i32 @Athena_LowerBlitWidth(%struct.Athena_Image* %18, %struct.Athena_Image* %19, i32 %20)
%22 = load i32, i32* %9
%23 = load i32, i32* %10
%24 = call i32 @Athena_LowerBlitScanLine(%struct.Athena_Image* %15, %struct.Athena_Image* %16, i32 %17, i32 %21, i32 %22, i32 %23)
ret void
}

LLVM IR (-O2):
%struct.Athena_Image = type opaque
define void @Athena_BlitScanLine(%struct.Athena_Image* %0, %struct.Athena_Image* %1, i32 %2, i32 %3, i32 %4) {
%6 = tail call i32 @assert(%struct.Athena_Image* %0)
%7 = tail call i32 @assert(%struct.Athena_Image* %1)
%8 = tail call i32 @Athena_LowerBlitWidth(%struct.Athena_Image* %0, %struct.Athena_Image* %1, i32 %3)
%9 = tail call i32 @Athena_LowerBlitScanLine(%struct.Athena_Image* %0, %struct.Athena_Image* %1, i32 %2, i32 %8, i32 %3, i32 %4)
ret void
}