#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*/ set_map_total_square_n(long, long, long, long, long);
void set_map_total_square(long x, long y, long dx, long dy) {
  long i;
  for (i = 0; i < 6; i++)
    set_map_total_square_n(i, x, y, dx, dy);
}


x86 assembly (clang, -O0):
<set_map_total_square>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
cmpq   $0x6,-0x28(%rbp)
jge    1165 <set_map_total_square+0x55>
mov    -0x28(%rbp),%rdi
mov    -0x8(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   1030 <set_map_total_square_n@plt>
mov    -0x28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x28(%rbp)
jmp    1130 <set_map_total_square+0x20>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_map_total_square>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
xor    %edi,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1030 <set_map_total_square_n@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1030 <set_map_total_square_n@plt>
mov    $0x2,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1030 <set_map_total_square_n@plt>
mov    $0x3,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1030 <set_map_total_square_n@plt>
mov    $0x4,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
call   1030 <set_map_total_square_n@plt>
mov    $0x5,%edi
mov    %rbx,%rsi
mov    %r12,%rdx
mov    %r15,%rcx
mov    %r14,%r8
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <set_map_total_square_n@plt>

LLVM IR (-O0):
define void @set_map_total_square(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = alloca i64
%6 = alloca i64
%7 = alloca i64
%8 = alloca i64
%9 = alloca i64
store i64 %0, i64* %5
store i64 %1, i64* %6
store i64 %2, i64* %7
store i64 %3, i64* %8
store i64 0, i64* %9
br label %10
10: ; preds = %20, %4
%11 = load i64, i64* %9
%12 = icmp slt i64 %11, 6
br i1 %12, label %13, label %23
13: ; preds = %10
%14 = load i64, i64* %9
%15 = load i64, i64* %5
%16 = load i64, i64* %6
%17 = load i64, i64* %7
%18 = load i64, i64* %8
%19 = call i32 @set_map_total_square_n(i64 %14, i64 %15, i64 %16, i64 %17, i64 %18)
br label %20
20: ; preds = %13
%21 = load i64, i64* %9
%22 = add nsw i64 %21, 1
store i64 %22, i64* %9
br label %10
23: ; preds = %10
ret void
}

LLVM IR (-O2):
define void @set_map_total_square(i64 %0, i64 %1, i64 %2, i64 %3) {
%5 = tail call i32 @set_map_total_square_n(i64 0, i64 %0, i64 %1, i64 %2, i64 %3)
%6 = tail call i32 @set_map_total_square_n(i64 1, i64 %0, i64 %1, i64 %2, i64 %3)
%7 = tail call i32 @set_map_total_square_n(i64 2, i64 %0, i64 %1, i64 %2, i64 %3)
%8 = tail call i32 @set_map_total_square_n(i64 3, i64 %0, i64 %1, i64 %2, i64 %3)
%9 = tail call i32 @set_map_total_square_n(i64 4, i64 %0, i64 %1, i64 %2, i64 %3)
%10 = tail call i32 @set_map_total_square_n(i64 5, i64 %0, i64 %1, i64 %2, i64 %3)
ret void
}