#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*/ screen_pintar(int, int, int, int);
void draw_red_team() {
  int i, j;
  for (i = 45; i < 50; i++) {
    for (j = 29; j < 36; j++) {
      screen_pintar(32, (0x1 << 4), i, j);
    }
  }
  screen_pintar(48, (0xF), 47, 31);
  screen_pintar(48, (0xF), 47, 32);
  screen_pintar(48, (0xF), 47, 33);
  screen_pintar(49, (0xF), 46, 9);
  screen_pintar(88, (0x5), 48, 9);
  screen_pintar(50, (0xF), 46, 11);
  screen_pintar(88, (0x5), 48, 11);
  screen_pintar(51, (0xF), 46, 13);
  screen_pintar(88, (0x5), 48, 13);
  screen_pintar(52, (0xF), 46, 15);
  screen_pintar(88, (0x5), 48, 15);
  screen_pintar(53, (0xF), 46, 17);
  screen_pintar(88, (0x5), 48, 17);
  screen_pintar(54, (0xF), 46, 19);
  screen_pintar(88, (0x5), 48, 19);
  screen_pintar(55, (0xF), 46, 21);
  screen_pintar(88, (0x5), 48, 21);
  screen_pintar(56, (0xF), 46, 23);
  screen_pintar(88, (0x5), 48, 23);
}


x86 assembly (clang, -O0):
<draw_red_team>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x2d,-0x4(%rbp)
cmpl   $0x32,-0x4(%rbp)
jge    1170 <draw_red_team+0x60>
movl   $0x1d,-0x8(%rbp)
cmpl   $0x24,-0x8(%rbp)
jge    115d <draw_red_team+0x4d>
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    $0x20,%edi
mov    $0x10,%esi
call   1030 <screen_pintar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1130 <draw_red_team+0x20>
jmp    1162 <draw_red_team+0x52>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <draw_red_team+0xf>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x1f,%ecx
call   1030 <screen_pintar@plt>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x20,%ecx
call   1030 <screen_pintar@plt>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x21,%ecx
call   1030 <screen_pintar@plt>
mov    $0x31,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x9,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x9,%ecx
call   1030 <screen_pintar@plt>
mov    $0x32,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0xb,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0xb,%ecx
call   1030 <screen_pintar@plt>
mov    $0x33,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0xd,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0xd,%ecx
call   1030 <screen_pintar@plt>
mov    $0x34,%edi
mov    $0xf,%ecx
mov    $0x2e,%edx
mov    %ecx,%esi
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0xf,%ecx
call   1030 <screen_pintar@plt>
mov    $0x35,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x11,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x11,%ecx
call   1030 <screen_pintar@plt>
mov    $0x36,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x13,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x13,%ecx
call   1030 <screen_pintar@plt>
mov    $0x37,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x15,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x15,%ecx
call   1030 <screen_pintar@plt>
mov    $0x38,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x17,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x17,%ecx
call   1030 <screen_pintar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_red_team>:
push   %rbx
mov    $0x2d,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    $0x20,%edi
mov    $0x10,%esi
mov    %ebx,%edx
mov    $0x1d,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x10,%esi
mov    %ebx,%edx
mov    $0x1e,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x10,%esi
mov    %ebx,%edx
mov    $0x1f,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x10,%esi
mov    %ebx,%edx
mov    $0x20,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x10,%esi
mov    %ebx,%edx
mov    $0x21,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x10,%esi
mov    %ebx,%edx
mov    $0x22,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x10,%esi
mov    %ebx,%edx
mov    $0x23,%ecx
call   1030 <screen_pintar@plt>
add    $0x1,%ebx
cmp    $0x32,%ebx
jne    1120 <draw_red_team+0x10>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x1f,%ecx
call   1030 <screen_pintar@plt>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x20,%ecx
call   1030 <screen_pintar@plt>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x21,%ecx
call   1030 <screen_pintar@plt>
mov    $0x31,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x9,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x9,%ecx
call   1030 <screen_pintar@plt>
mov    $0x32,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0xb,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0xb,%ecx
call   1030 <screen_pintar@plt>
mov    $0x33,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0xd,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0xd,%ecx
call   1030 <screen_pintar@plt>
mov    $0x34,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0xf,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0xf,%ecx
call   1030 <screen_pintar@plt>
mov    $0x35,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x11,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x11,%ecx
call   1030 <screen_pintar@plt>
mov    $0x36,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x13,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x13,%ecx
call   1030 <screen_pintar@plt>
mov    $0x37,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x15,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x15,%ecx
call   1030 <screen_pintar@plt>
mov    $0x38,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x17,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x17,%ecx
pop    %rbx
jmp    1030 <screen_pintar@plt>

LLVM IR (-O0):
define void @draw_red_team() {
%1 = alloca i32
%2 = alloca i32
store i32 45, i32* %1
br label %3
3: ; preds = %18, %0
%4 = load i32, i32* %1
%5 = icmp slt i32 %4, 50
br i1 %5, label %6, label %21
6: ; preds = %3
store i32 29, i32* %2
br label %7
7: ; preds = %14, %6
%8 = load i32, i32* %2
%9 = icmp slt i32 %8, 36
br i1 %9, label %10, label %17
10: ; preds = %7
%11 = load i32, i32* %1
%12 = load i32, i32* %2
%13 = call i32 @screen_pintar(i32 32, i32 16, i32 %11, i32 %12)
br label %14
14: ; preds = %10
%15 = load i32, i32* %2
%16 = add nsw i32 %15, 1
store i32 %16, i32* %2
br label %7
17: ; preds = %7
br label %18
18: ; preds = %17
%19 = load i32, i32* %1
%20 = add nsw i32 %19, 1
store i32 %20, i32* %1
br label %3
21: ; preds = %3
%22 = call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 31)
%23 = call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 32)
%24 = call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 33)
%25 = call i32 @screen_pintar(i32 49, i32 15, i32 46, i32 9)
%26 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 9)
%27 = call i32 @screen_pintar(i32 50, i32 15, i32 46, i32 11)
%28 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 11)
%29 = call i32 @screen_pintar(i32 51, i32 15, i32 46, i32 13)
%30 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 13)
%31 = call i32 @screen_pintar(i32 52, i32 15, i32 46, i32 15)
%32 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 15)
%33 = call i32 @screen_pintar(i32 53, i32 15, i32 46, i32 17)
%34 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 17)
%35 = call i32 @screen_pintar(i32 54, i32 15, i32 46, i32 19)
%36 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 19)
%37 = call i32 @screen_pintar(i32 55, i32 15, i32 46, i32 21)
%38 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 21)
%39 = call i32 @screen_pintar(i32 56, i32 15, i32 46, i32 23)
%40 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 23)
ret void
}

LLVM IR (-O2):
define void @draw_red_team() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 45, %0 ], [ %10, %1 ]
%3 = tail call i32 @screen_pintar(i32 32, i32 16, i32 %2, i32 29)
%4 = tail call i32 @screen_pintar(i32 32, i32 16, i32 %2, i32 30)
%5 = tail call i32 @screen_pintar(i32 32, i32 16, i32 %2, i32 31)
%6 = tail call i32 @screen_pintar(i32 32, i32 16, i32 %2, i32 32)
%7 = tail call i32 @screen_pintar(i32 32, i32 16, i32 %2, i32 33)
%8 = tail call i32 @screen_pintar(i32 32, i32 16, i32 %2, i32 34)
%9 = tail call i32 @screen_pintar(i32 32, i32 16, i32 %2, i32 35)
%10 = add nuw nsw i32 %2, 1
%11 = icmp eq i32 %10, 50
br i1 %11, label %12, label %1
12: ; preds = %1
%13 = tail call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 31)
%14 = tail call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 32)
%15 = tail call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 33)
%16 = tail call i32 @screen_pintar(i32 49, i32 15, i32 46, i32 9)
%17 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 9)
%18 = tail call i32 @screen_pintar(i32 50, i32 15, i32 46, i32 11)
%19 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 11)
%20 = tail call i32 @screen_pintar(i32 51, i32 15, i32 46, i32 13)
%21 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 13)
%22 = tail call i32 @screen_pintar(i32 52, i32 15, i32 46, i32 15)
%23 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 15)
%24 = tail call i32 @screen_pintar(i32 53, i32 15, i32 46, i32 17)
%25 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 17)
%26 = tail call i32 @screen_pintar(i32 54, i32 15, i32 46, i32 19)
%27 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 19)
%28 = tail call i32 @screen_pintar(i32 55, i32 15, i32 46, i32 21)
%29 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 21)
%30 = tail call i32 @screen_pintar(i32 56, i32 15, i32 46, i32 23)
%31 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 23)
ret void
}