#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*/ roadmap_download_block(int);
int /*<<< orphan*/ roadmap_download_blocked(int);
int /*<<< orphan*/ roadmap_log(int, char *, int, char *, int);
int roadmap_start_no_download(int fips) {
  if (!roadmap_download_blocked(fips)) {
    roadmap_log(3,
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/maximuska/Freemap-waze/refs/"
                "heads/master/roadmap_start.c",
                453, "cannot open map database usc%05d", fips);
    roadmap_download_block(fips);
  }
  return 0;
}


x86 assembly (clang, -O0):
<roadmap_start_no_download>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%edi
call   1050 <roadmap_download_blocked@plt>
cmp    $0x0,%eax
jne    1175 <roadmap_start_no_download+0x45>
mov    -0x4(%rbp),%r8d
mov    $0x3,%edi
lea    0xea4(%rip),%rsi
mov    $0x1c5,%edx
lea    0xf2b(%rip),%rcx
call   1030 <roadmap_log@plt>
mov    -0x4(%rbp),%edi
call   1040 <roadmap_download_block@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<roadmap_start_no_download>:
push   %rbx
mov    %edi,%ebx
call   1050 <roadmap_download_blocked@plt>
test   %eax,%eax
jne    1163 <roadmap_start_no_download+0x33>
lea    0xebd(%rip),%rsi
lea    0xf49(%rip),%rcx
mov    $0x3,%edi
mov    $0x1c5,%edx
mov    %ebx,%r8d
call   1030 <roadmap_log@plt>
mov    %ebx,%edi
call   1040 <roadmap_download_block@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/maximuska/Freemap-waze/refs/heads/master/roadmap_start.c\00"
@.str.1 = [33 x i8] c"cannot open map database usc%05d\00"
define i32 @roadmap_start_no_download(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = call i32 @roadmap_download_blocked(i32 %3)
%5 = icmp ne i32 %4, 0
br i1 %5, label %11, label %6
6: ; preds = %1
%7 = load i32, i32* %2
%8 = call i32 @roadmap_log(i32 3, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str, i64 0, i64 0), i32 453, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %7)
%9 = load i32, i32* %2
%10 = call i32 @roadmap_download_block(i32 %9)
br label %11
11: ; preds = %6, %1
ret i32 0
}

LLVM IR (-O2):
@.str = [147 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/maximuska/Freemap-waze/refs/heads/master/roadmap_start.c\00"
@.str.1 = [33 x i8] c"cannot open map database usc%05d\00"
define i32 @roadmap_start_no_download(i32 %0) {
%2 = tail call i32 @roadmap_download_blocked(i32 %0)
%3 = icmp eq i32 %2, 0
br i1 %3, label %4, label %7
4: ; preds = %1
%5 = tail call i32 @roadmap_log(i32 3, i8* getelementptr inbounds ([147 x i8], [147 x i8]* @.str, i64 0, i64 0), i32 453, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 %0)
%6 = tail call i32 @roadmap_download_block(i32 %0)
br label %7
7: ; preds = %4, %1
ret i32 0
}