#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_blue_team() {
  int i, j;
  for (i = 45; i < 50; i++) {
    for (j = 38; j < 45; j++) {
      screen_pintar(32, (0x4 << 4), i, j);
    }
  }
  screen_pintar(48, (0xF), 47, 40);
  screen_pintar(48, (0xF), 47, 41);
  screen_pintar(48, (0xF), 47, 42);
  screen_pintar(49, (0xF), 46, 55);
  screen_pintar(88, (0x5), 48, 55);
  screen_pintar(50, (0xF), 46, 57);
  screen_pintar(88, (0x5), 48, 57);
  screen_pintar(51, (0xF), 46, 59);
  screen_pintar(88, (0x5), 48, 59);
  screen_pintar(52, (0xF), 46, 61);
  screen_pintar(88, (0x5), 48, 61);
  screen_pintar(53, (0xF), 46, 63);
  screen_pintar(88, (0x5), 48, 63);
  screen_pintar(54, (0xF), 46, 65);
  screen_pintar(88, (0x5), 48, 65);
  screen_pintar(55, (0xF), 46, 67);
  screen_pintar(88, (0x5), 48, 67);
  screen_pintar(56, (0xF), 46, 69);
  screen_pintar(88, (0x5), 48, 69);
}


x86 assembly (clang, -O0):
<draw_blue_team>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x2d,-0x4(%rbp)
cmpl   $0x32,-0x4(%rbp)
jge    1170 <draw_blue_team+0x60>
movl   $0x26,-0x8(%rbp)
cmpl   $0x2d,-0x8(%rbp)
jge    115d <draw_blue_team+0x4d>
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    $0x20,%edi
mov    $0x40,%esi
call   1030 <screen_pintar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1130 <draw_blue_team+0x20>
jmp    1162 <draw_blue_team+0x52>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    111f <draw_blue_team+0xf>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x28,%ecx
call   1030 <screen_pintar@plt>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x29,%ecx
call   1030 <screen_pintar@plt>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x2a,%ecx
call   1030 <screen_pintar@plt>
mov    $0x31,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x37,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x37,%ecx
call   1030 <screen_pintar@plt>
mov    $0x32,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x39,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x39,%ecx
call   1030 <screen_pintar@plt>
mov    $0x33,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x3b,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x3b,%ecx
call   1030 <screen_pintar@plt>
mov    $0x34,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x3d,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x3d,%ecx
call   1030 <screen_pintar@plt>
mov    $0x35,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x3f,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x3f,%ecx
call   1030 <screen_pintar@plt>
mov    $0x36,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x41,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x41,%ecx
call   1030 <screen_pintar@plt>
mov    $0x37,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x43,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x43,%ecx
call   1030 <screen_pintar@plt>
mov    $0x38,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x45,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x45,%ecx
call   1030 <screen_pintar@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<draw_blue_team>:
push   %rbx
mov    $0x2d,%ebx
cs nopw 0x0(%rax,%rax,1)
mov    $0x20,%edi
mov    $0x40,%esi
mov    %ebx,%edx
mov    $0x26,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x40,%esi
mov    %ebx,%edx
mov    $0x27,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x40,%esi
mov    %ebx,%edx
mov    $0x28,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x40,%esi
mov    %ebx,%edx
mov    $0x29,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x40,%esi
mov    %ebx,%edx
mov    $0x2a,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x40,%esi
mov    %ebx,%edx
mov    $0x2b,%ecx
call   1030 <screen_pintar@plt>
mov    $0x20,%edi
mov    $0x40,%esi
mov    %ebx,%edx
mov    $0x2c,%ecx
call   1030 <screen_pintar@plt>
add    $0x1,%ebx
cmp    $0x32,%ebx
jne    1120 <draw_blue_team+0x10>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x28,%ecx
call   1030 <screen_pintar@plt>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x29,%ecx
call   1030 <screen_pintar@plt>
mov    $0x30,%edi
mov    $0xf,%esi
mov    $0x2f,%edx
mov    $0x2a,%ecx
call   1030 <screen_pintar@plt>
mov    $0x31,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x37,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x37,%ecx
call   1030 <screen_pintar@plt>
mov    $0x32,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x39,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x39,%ecx
call   1030 <screen_pintar@plt>
mov    $0x33,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x3b,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x3b,%ecx
call   1030 <screen_pintar@plt>
mov    $0x34,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x3d,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x3d,%ecx
call   1030 <screen_pintar@plt>
mov    $0x35,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x3f,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x3f,%ecx
call   1030 <screen_pintar@plt>
mov    $0x36,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x41,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x41,%ecx
call   1030 <screen_pintar@plt>
mov    $0x37,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x43,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x43,%ecx
call   1030 <screen_pintar@plt>
mov    $0x38,%edi
mov    $0xf,%esi
mov    $0x2e,%edx
mov    $0x45,%ecx
call   1030 <screen_pintar@plt>
mov    $0x58,%edi
mov    $0x5,%esi
mov    $0x30,%edx
mov    $0x45,%ecx
pop    %rbx
jmp    1030 <screen_pintar@plt>

LLVM IR (-O0):
define void @draw_blue_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 38, i32* %2
br label %7
7: ; preds = %14, %6
%8 = load i32, i32* %2
%9 = icmp slt i32 %8, 45
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 64, 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 40)
%23 = call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 41)
%24 = call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 42)
%25 = call i32 @screen_pintar(i32 49, i32 15, i32 46, i32 55)
%26 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 55)
%27 = call i32 @screen_pintar(i32 50, i32 15, i32 46, i32 57)
%28 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 57)
%29 = call i32 @screen_pintar(i32 51, i32 15, i32 46, i32 59)
%30 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 59)
%31 = call i32 @screen_pintar(i32 52, i32 15, i32 46, i32 61)
%32 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 61)
%33 = call i32 @screen_pintar(i32 53, i32 15, i32 46, i32 63)
%34 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 63)
%35 = call i32 @screen_pintar(i32 54, i32 15, i32 46, i32 65)
%36 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 65)
%37 = call i32 @screen_pintar(i32 55, i32 15, i32 46, i32 67)
%38 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 67)
%39 = call i32 @screen_pintar(i32 56, i32 15, i32 46, i32 69)
%40 = call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 69)
ret void
}

LLVM IR (-O2):
define void @draw_blue_team() {
br label %1
1: ; preds = %0, %1
%2 = phi i32 [ 45, %0 ], [ %10, %1 ]
%3 = tail call i32 @screen_pintar(i32 32, i32 64, i32 %2, i32 38)
%4 = tail call i32 @screen_pintar(i32 32, i32 64, i32 %2, i32 39)
%5 = tail call i32 @screen_pintar(i32 32, i32 64, i32 %2, i32 40)
%6 = tail call i32 @screen_pintar(i32 32, i32 64, i32 %2, i32 41)
%7 = tail call i32 @screen_pintar(i32 32, i32 64, i32 %2, i32 42)
%8 = tail call i32 @screen_pintar(i32 32, i32 64, i32 %2, i32 43)
%9 = tail call i32 @screen_pintar(i32 32, i32 64, i32 %2, i32 44)
%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 40)
%14 = tail call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 41)
%15 = tail call i32 @screen_pintar(i32 48, i32 15, i32 47, i32 42)
%16 = tail call i32 @screen_pintar(i32 49, i32 15, i32 46, i32 55)
%17 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 55)
%18 = tail call i32 @screen_pintar(i32 50, i32 15, i32 46, i32 57)
%19 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 57)
%20 = tail call i32 @screen_pintar(i32 51, i32 15, i32 46, i32 59)
%21 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 59)
%22 = tail call i32 @screen_pintar(i32 52, i32 15, i32 46, i32 61)
%23 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 61)
%24 = tail call i32 @screen_pintar(i32 53, i32 15, i32 46, i32 63)
%25 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 63)
%26 = tail call i32 @screen_pintar(i32 54, i32 15, i32 46, i32 65)
%27 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 65)
%28 = tail call i32 @screen_pintar(i32 55, i32 15, i32 46, i32 67)
%29 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 67)
%30 = tail call i32 @screen_pintar(i32 56, i32 15, i32 46, i32 69)
%31 = tail call i32 @screen_pintar(i32 88, i32 5, i32 48, i32 69)
ret void
}