#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 int /*<<< orphan*/ sqlite3_stmt;
typedef int /*<<< orphan*/ sqlite3;

/* Variables and functions */
scalar_t__ SQLITE_DONE;
int /*<<< orphan*/ SQLITE_STATIC;
scalar_t__ sqlite3_bind_text(void *, int, char *, int, int /*<<< orphan*/);
scalar_t__ sqlite3_clear_bindings(void *);
int /*<<< orphan*/ *sqlite3_db_handle(int /*<<< orphan*/ *);
int /*<<< orphan*/ sqlite3_err(char *, int, int /*<<< orphan*/ *, char *);
scalar_t__ sqlite3_reset(void *);
scalar_t__ sqlite3_step(void *);
int adjust_mod_time(void *stmt, int col_count, char **cols, char **col_names) {
  sqlite3_stmt *updt_stmt = stmt;
  sqlite3 *db = sqlite3_db_handle(updt_stmt);
  if (sqlite3_bind_text(stmt, 1, cols[1], -1, SQLITE_STATIC)) {
    sqlite3_err("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/"
                "refs/heads/master/service_list.c",
                455, db, "Cannot bind mod_time to updt stmt");
    return -1;
  }
  if (sqlite3_bind_text(stmt, 2, cols[0], -1, SQLITE_STATIC)) {
    sqlite3_err("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/"
                "refs/heads/master/service_list.c",
                460, db, "Cannot bind position to updt stmt");
    return -1;
  }
  if (sqlite3_bind_text(stmt, 3, cols[2], -1, SQLITE_STATIC)) {
    sqlite3_err("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/"
                "refs/heads/master/service_list.c",
                465, db, "Cannot bind cat_id to updt stmt");
    return -1;
  }
  if (sqlite3_bind_text(stmt, 4, cols[4], -1, SQLITE_STATIC)) {
    sqlite3_err("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/"
                "refs/heads/master/service_list.c",
                470, db, "Cannot bind desc to updt stmt");
    return -1;
  }
  if (sqlite3_bind_text(stmt, 5, cols[5], -1, SQLITE_STATIC)) {
    sqlite3_err("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/"
                "refs/heads/master/service_list.c",
                475, db, "Cannot bind long_desc to updt stmt");
    return -1;
  }
  if (sqlite3_bind_text(stmt, 6, cols[3], -1, SQLITE_STATIC)) {
    sqlite3_err("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/"
                "refs/heads/master/service_list.c",
                480, db, "Cannot bind uri to updt stmt");
    return -1;
  }
  if (sqlite3_step(stmt) != SQLITE_DONE) {
    sqlite3_err("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/"
                "refs/heads/master/service_list.c",
                486, db, "Cannot execute updt stmt");
    return -1;
  }
  if (sqlite3_reset(stmt)) {
    sqlite3_err("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/"
                "refs/heads/master/service_list.c",
                492, db, "Cannot reset updt stmt");
    return -1;
  }
  if (sqlite3_clear_bindings(stmt)) {
    sqlite3_err("/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/"
                "refs/heads/master/service_list.c",
                497, db, "Cannot clear updt stmt bindings");
    return -1;
  }
  return 0;
}


x86 assembly (clang, -O0):
<adjust_mod_time>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
call   1040 <sqlite3_db_handle@plt>
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    0x8(%rax),%rdx
mov    0x2e41(%rip),%rax
mov    (%rax),%r8d
mov    $0x1,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
cmp    $0x0,%rax
je     11e3 <adjust_mod_time+0x83>
mov    -0x38(%rbp),%rdx
lea    0xe3a(%rip),%rdi
mov    $0x1c7,%esi
lea    0xec3(%rip),%rcx
call   1060 <sqlite3_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1453 <adjust_mod_time+0x2f3>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    (%rax),%rdx
mov    0x2deb(%rip),%rax
mov    (%rax),%r8d
mov    $0x2,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
cmp    $0x0,%rax
je     1239 <adjust_mod_time+0xd9>
mov    -0x38(%rbp),%rdx
lea    0xde4(%rip),%rdi
mov    $0x1cc,%esi
lea    0xe8f(%rip),%rcx
call   1060 <sqlite3_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1453 <adjust_mod_time+0x2f3>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    0x10(%rax),%rdx
mov    0x2d94(%rip),%rax
mov    (%rax),%r8d
mov    $0x3,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
cmp    $0x0,%rax
je     1290 <adjust_mod_time+0x130>
mov    -0x38(%rbp),%rdx
lea    0xd8d(%rip),%rdi
mov    $0x1d1,%esi
lea    0xe5a(%rip),%rcx
call   1060 <sqlite3_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1453 <adjust_mod_time+0x2f3>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    0x20(%rax),%rdx
mov    0x2d3d(%rip),%rax
mov    (%rax),%r8d
mov    $0x4,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
cmp    $0x0,%rax
je     12e7 <adjust_mod_time+0x187>
mov    -0x38(%rbp),%rdx
lea    0xd36(%rip),%rdi
mov    $0x1d6,%esi
lea    0xe23(%rip),%rcx
call   1060 <sqlite3_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1453 <adjust_mod_time+0x2f3>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    0x28(%rax),%rdx
mov    0x2ce6(%rip),%rax
mov    (%rax),%r8d
mov    $0x5,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
cmp    $0x0,%rax
je     133e <adjust_mod_time+0x1de>
mov    -0x38(%rbp),%rdx
lea    0xcdf(%rip),%rdi
mov    $0x1db,%esi
lea    0xdea(%rip),%rcx
call   1060 <sqlite3_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1453 <adjust_mod_time+0x2f3>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    0x18(%rax),%rdx
mov    0x2c8f(%rip),%rax
mov    (%rax),%r8d
mov    $0x6,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
cmp    $0x0,%rax
je     1395 <adjust_mod_time+0x235>
mov    -0x38(%rbp),%rdx
lea    0xc88(%rip),%rdi
mov    $0x1e0,%esi
lea    0xdb6(%rip),%rcx
call   1060 <sqlite3_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1453 <adjust_mod_time+0x2f3>
mov    -0x10(%rbp),%rdi
call   1050 <sqlite3_step@plt>
mov    0x2c33(%rip),%rcx
cmp    (%rcx),%rax
je     13d6 <adjust_mod_time+0x276>
mov    -0x38(%rbp),%rdx
lea    0xc47(%rip),%rdi
mov    $0x1e6,%esi
lea    0xd92(%rip),%rcx
call   1060 <sqlite3_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1453 <adjust_mod_time+0x2f3>
mov    -0x10(%rbp),%rdi
call   1030 <sqlite3_reset@plt>
cmp    $0x0,%rax
je     1411 <adjust_mod_time+0x2b1>
mov    -0x38(%rbp),%rdx
lea    0xc0c(%rip),%rdi
mov    $0x1ec,%esi
lea    0xd70(%rip),%rcx
call   1060 <sqlite3_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1453 <adjust_mod_time+0x2f3>
mov    -0x10(%rbp),%rdi
call   1080 <sqlite3_clear_bindings@plt>
cmp    $0x0,%rax
je     144c <adjust_mod_time+0x2ec>
mov    -0x38(%rbp),%rdx
lea    0xbd1(%rip),%rdi
mov    $0x1f1,%esi
lea    0xd4c(%rip),%rcx
call   1060 <sqlite3_err@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1453 <adjust_mod_time+0x2f3>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<adjust_mod_time>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdx,%rbp
mov    %rdi,%rbx
call   1040 <sqlite3_db_handle@plt>
mov    %rax,%r14
mov    0x8(%rbp),%rdx
mov    0x2e5f(%rip),%r12
mov    (%r12),%r8d
mov    $0xffffffff,%r15d
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
test   %rax,%rax
je     11ba <adjust_mod_time+0x5a>
lea    0xe57(%rip),%rdi
lea    0xee5(%rip),%rcx
mov    $0x1c7,%esi
jmp    1331 <adjust_mod_time+0x1d1>
mov    0x0(%rbp),%rdx
mov    (%r12),%r8d
mov    $0xffffffff,%r15d
mov    %rbx,%rdi
mov    $0x2,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
test   %rax,%rax
je     11f7 <adjust_mod_time+0x97>
lea    0xe1a(%rip),%rdi
lea    0xeca(%rip),%rcx
mov    $0x1cc,%esi
jmp    1331 <adjust_mod_time+0x1d1>
mov    0x10(%rbp),%rdx
mov    (%r12),%r8d
mov    $0xffffffff,%r15d
mov    %rbx,%rdi
mov    $0x3,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
test   %rax,%rax
je     1234 <adjust_mod_time+0xd4>
lea    0xddd(%rip),%rdi
lea    0xeaf(%rip),%rcx
mov    $0x1d1,%esi
jmp    1331 <adjust_mod_time+0x1d1>
mov    0x20(%rbp),%rdx
mov    (%r12),%r8d
mov    $0xffffffff,%r15d
mov    %rbx,%rdi
mov    $0x4,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
test   %rax,%rax
je     1271 <adjust_mod_time+0x111>
lea    0xda0(%rip),%rdi
lea    0xe92(%rip),%rcx
mov    $0x1d6,%esi
jmp    1331 <adjust_mod_time+0x1d1>
mov    0x28(%rbp),%rdx
mov    (%r12),%r8d
mov    $0xffffffff,%r15d
mov    %rbx,%rdi
mov    $0x5,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
test   %rax,%rax
je     12ae <adjust_mod_time+0x14e>
lea    0xd63(%rip),%rdi
lea    0xe73(%rip),%rcx
mov    $0x1db,%esi
jmp    1331 <adjust_mod_time+0x1d1>
mov    0x18(%rbp),%rdx
mov    (%r12),%r8d
mov    $0xffffffff,%r15d
mov    %rbx,%rdi
mov    $0x6,%esi
mov    $0xffffffff,%ecx
call   1070 <sqlite3_bind_text@plt>
test   %rax,%rax
je     12e8 <adjust_mod_time+0x188>
lea    0xd26(%rip),%rdi
lea    0xe59(%rip),%rcx
mov    $0x1e0,%esi
jmp    1331 <adjust_mod_time+0x1d1>
mov    %rbx,%rdi
call   1050 <sqlite3_step@plt>
mov    0x2ce1(%rip),%rcx
cmp    (%rcx),%rax
jne    131e <adjust_mod_time+0x1be>
mov    %rbx,%rdi
call   1030 <sqlite3_reset@plt>
test   %rax,%rax
je     1345 <adjust_mod_time+0x1e5>
lea    0xcf0(%rip),%rdi
lea    0xe59(%rip),%rcx
mov    $0x1ec,%esi
jmp    1331 <adjust_mod_time+0x1d1>
lea    0xcdb(%rip),%rdi
lea    0xe2b(%rip),%rcx
mov    $0x1e6,%esi
mov    %r14,%rdx
call   1060 <sqlite3_err@plt>
mov    %r15d,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rbx,%rdi
call   1080 <sqlite3_clear_bindings@plt>
test   %rax,%rax
je     1367 <adjust_mod_time+0x207>
lea    0xca7(%rip),%rdi
lea    0xe27(%rip),%rcx
mov    $0x1f1,%esi
jmp    1331 <adjust_mod_time+0x1d1>
xor    %r15d,%r15d
jmp    1339 <adjust_mod_time+0x1d9>

LLVM IR (-O0):
@SQLITE_STATIC = global i32 0
@.str = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/refs/heads/master/service_list.c\00"
@.str.1 = [34 x i8] c"Cannot bind mod_time to updt stmt\00"
@.str.2 = [34 x i8] c"Cannot bind position to updt stmt\00"
@.str.3 = [32 x i8] c"Cannot bind cat_id to updt stmt\00"
@.str.4 = [30 x i8] c"Cannot bind desc to updt stmt\00"
@.str.5 = [35 x i8] c"Cannot bind long_desc to updt stmt\00"
@.str.6 = [29 x i8] c"Cannot bind uri to updt stmt\00"
@SQLITE_DONE = global i64 0
@.str.7 = [25 x i8] c"Cannot execute updt stmt\00"
@.str.8 = [23 x i8] c"Cannot reset updt stmt\00"
@.str.9 = [32 x i8] c"Cannot clear updt stmt bindings\00"
define i32 @adjust_mod_time(i8* %0, i32 %1, i8** %2, i8** %3) {
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8**
%9 = alloca i8**
%10 = alloca i32*
%11 = alloca i32*
store i8* %0, i8** %6
store i32 %1, i32* %7
store i8** %2, i8*** %8
store i8** %3, i8*** %9
%12 = load i8*, i8** %6
%13 = bitcast i8* %12 to i32*
store i32* %13, i32** %10
%14 = load i32*, i32** %10
%15 = call i32* @sqlite3_db_handle(i32* %14)
store i32* %15, i32** %11
%16 = load i8*, i8** %6
%17 = load i8**, i8*** %8
%18 = getelementptr inbounds i8*, i8** %17, i64 1
%19 = load i8*, i8** %18
%20 = load i32, i32* @SQLITE_STATIC
%21 = call i64 @sqlite3_bind_text(i8* %16, i32 1, i8* %19, i32 -1, i32 %20)
%22 = icmp ne i64 %21, 0
br i1 %22, label %23, label %26
23: ; preds = %4
%24 = load i32*, i32** %11
%25 = call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 455, i32* %24, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %5
br label %104
26: ; preds = %4
%27 = load i8*, i8** %6
%28 = load i8**, i8*** %8
%29 = getelementptr inbounds i8*, i8** %28, i64 0
%30 = load i8*, i8** %29
%31 = load i32, i32* @SQLITE_STATIC
%32 = call i64 @sqlite3_bind_text(i8* %27, i32 2, i8* %30, i32 -1, i32 %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %26
%35 = load i32*, i32** %11
%36 = call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 460, i32* %35, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %5
br label %104
37: ; preds = %26
%38 = load i8*, i8** %6
%39 = load i8**, i8*** %8
%40 = getelementptr inbounds i8*, i8** %39, i64 2
%41 = load i8*, i8** %40
%42 = load i32, i32* @SQLITE_STATIC
%43 = call i64 @sqlite3_bind_text(i8* %38, i32 3, i8* %41, i32 -1, i32 %42)
%44 = icmp ne i64 %43, 0
br i1 %44, label %45, label %48
45: ; preds = %37
%46 = load i32*, i32** %11
%47 = call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 465, i32* %46, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
store i32 -1, i32* %5
br label %104
48: ; preds = %37
%49 = load i8*, i8** %6
%50 = load i8**, i8*** %8
%51 = getelementptr inbounds i8*, i8** %50, i64 4
%52 = load i8*, i8** %51
%53 = load i32, i32* @SQLITE_STATIC
%54 = call i64 @sqlite3_bind_text(i8* %49, i32 4, i8* %52, i32 -1, i32 %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %48
%57 = load i32*, i32** %11
%58 = call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 470, i32* %57, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
store i32 -1, i32* %5
br label %104
59: ; preds = %48
%60 = load i8*, i8** %6
%61 = load i8**, i8*** %8
%62 = getelementptr inbounds i8*, i8** %61, i64 5
%63 = load i8*, i8** %62
%64 = load i32, i32* @SQLITE_STATIC
%65 = call i64 @sqlite3_bind_text(i8* %60, i32 5, i8* %63, i32 -1, i32 %64)
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %70
67: ; preds = %59
%68 = load i32*, i32** %11
%69 = call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 475, i32* %68, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
store i32 -1, i32* %5
br label %104
70: ; preds = %59
%71 = load i8*, i8** %6
%72 = load i8**, i8*** %8
%73 = getelementptr inbounds i8*, i8** %72, i64 3
%74 = load i8*, i8** %73
%75 = load i32, i32* @SQLITE_STATIC
%76 = call i64 @sqlite3_bind_text(i8* %71, i32 6, i8* %74, i32 -1, i32 %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %70
%79 = load i32*, i32** %11
%80 = call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 480, i32* %79, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
store i32 -1, i32* %5
br label %104
81: ; preds = %70
%82 = load i8*, i8** %6
%83 = call i64 @sqlite3_step(i8* %82)
%84 = load i64, i64* @SQLITE_DONE
%85 = icmp ne i64 %83, %84
br i1 %85, label %86, label %89
86: ; preds = %81
%87 = load i32*, i32** %11
%88 = call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 486, i32* %87, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
store i32 -1, i32* %5
br label %104
89: ; preds = %81
%90 = load i8*, i8** %6
%91 = call i64 @sqlite3_reset(i8* %90)
%92 = icmp ne i64 %91, 0
br i1 %92, label %93, label %96
93: ; preds = %89
%94 = load i32*, i32** %11
%95 = call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 492, i32* %94, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0))
store i32 -1, i32* %5
br label %104
96: ; preds = %89
%97 = load i8*, i8** %6
%98 = call i64 @sqlite3_clear_bindings(i8* %97)
%99 = icmp ne i64 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %96
%101 = load i32*, i32** %11
%102 = call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 497, i32* %101, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
store i32 -1, i32* %5
br label %104
103: ; preds = %96
store i32 0, i32* %5
br label %104
104: ; preds = %103, %100, %93, %86, %78, %67, %56, %45, %34, %23
%105 = load i32, i32* %5
ret i32 %105
}

LLVM IR (-O2):
@SQLITE_STATIC = global i32 0
@.str = [149 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/eus/service_publishing_ap/refs/heads/master/service_list.c\00"
@.str.1 = [34 x i8] c"Cannot bind mod_time to updt stmt\00"
@.str.2 = [34 x i8] c"Cannot bind position to updt stmt\00"
@.str.3 = [32 x i8] c"Cannot bind cat_id to updt stmt\00"
@.str.4 = [30 x i8] c"Cannot bind desc to updt stmt\00"
@.str.5 = [35 x i8] c"Cannot bind long_desc to updt stmt\00"
@.str.6 = [29 x i8] c"Cannot bind uri to updt stmt\00"
@SQLITE_DONE = global i64 0
@.str.7 = [25 x i8] c"Cannot execute updt stmt\00"
@.str.8 = [23 x i8] c"Cannot reset updt stmt\00"
@.str.9 = [32 x i8] c"Cannot clear updt stmt bindings\00"
define i32 @adjust_mod_time(i8* %0, i32 %1, i8** nocapture %2, i8** nocapture readnone %3) {
%5 = bitcast i8* %0 to i32*
%6 = tail call i32* @sqlite3_db_handle(i32* %5)
%7 = getelementptr inbounds i8*, i8** %2, i64 1
%8 = load i8*, i8** %7
%9 = load i32, i32* @SQLITE_STATIC
%10 = tail call i64 @sqlite3_bind_text(i8* %0, i32 1, i8* %8, i32 -1, i32 %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %14, label %12
12: ; preds = %4
%13 = tail call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 455, i32* %6, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0))
br label %69
14: ; preds = %4
%15 = load i8*, i8** %2
%16 = load i32, i32* @SQLITE_STATIC
%17 = tail call i64 @sqlite3_bind_text(i8* %0, i32 2, i8* %15, i32 -1, i32 %16)
%18 = icmp eq i64 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %14
%20 = tail call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 460, i32* %6, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
br label %69
21: ; preds = %14
%22 = getelementptr inbounds i8*, i8** %2, i64 2
%23 = load i8*, i8** %22
%24 = load i32, i32* @SQLITE_STATIC
%25 = tail call i64 @sqlite3_bind_text(i8* %0, i32 3, i8* %23, i32 -1, i32 %24)
%26 = icmp eq i64 %25, 0
br i1 %26, label %29, label %27
27: ; preds = %21
%28 = tail call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 465, i32* %6, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0))
br label %69
29: ; preds = %21
%30 = getelementptr inbounds i8*, i8** %2, i64 4
%31 = load i8*, i8** %30
%32 = load i32, i32* @SQLITE_STATIC
%33 = tail call i64 @sqlite3_bind_text(i8* %0, i32 4, i8* %31, i32 -1, i32 %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %37, label %35
35: ; preds = %29
%36 = tail call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 470, i32* %6, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0))
br label %69
37: ; preds = %29
%38 = getelementptr inbounds i8*, i8** %2, i64 5
%39 = load i8*, i8** %38
%40 = load i32, i32* @SQLITE_STATIC
%41 = tail call i64 @sqlite3_bind_text(i8* %0, i32 5, i8* %39, i32 -1, i32 %40)
%42 = icmp eq i64 %41, 0
br i1 %42, label %45, label %43
43: ; preds = %37
%44 = tail call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 475, i32* %6, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
br label %69
45: ; preds = %37
%46 = getelementptr inbounds i8*, i8** %2, i64 3
%47 = load i8*, i8** %46
%48 = load i32, i32* @SQLITE_STATIC
%49 = tail call i64 @sqlite3_bind_text(i8* %0, i32 6, i8* %47, i32 -1, i32 %48)
%50 = icmp eq i64 %49, 0
br i1 %50, label %53, label %51
51: ; preds = %45
%52 = tail call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 480, i32* %6, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
br label %69
53: ; preds = %45
%54 = tail call i64 @sqlite3_step(i8* %0)
%55 = load i64, i64* @SQLITE_DONE
%56 = icmp eq i64 %54, %55
br i1 %56, label %59, label %57
57: ; preds = %53
%58 = tail call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 486, i32* %6, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
br label %69
59: ; preds = %53
%60 = tail call i64 @sqlite3_reset(i8* %0)
%61 = icmp eq i64 %60, 0
br i1 %61, label %64, label %62
62: ; preds = %59
%63 = tail call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 492, i32* %6, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0))
br label %69
64: ; preds = %59
%65 = tail call i64 @sqlite3_clear_bindings(i8* %0)
%66 = icmp eq i64 %65, 0
br i1 %66, label %69, label %67
67: ; preds = %64
%68 = tail call i32 @sqlite3_err(i8* getelementptr inbounds ([149 x i8], [149 x i8]* @.str, i64 0, i64 0), i32 497, i32* %6, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.9, i64 0, i64 0))
br label %69
69: ; preds = %64, %67, %62, %57, %51, %43, %35, %27, %19, %12
%70 = phi i32 [ -1, %12 ], [ -1, %19 ], [ -1, %27 ], [ -1, %35 ], [ -1, %43 ], [ -1, %51 ], [ -1, %57 ], [ -1, %62 ], [ -1, %67 ], [ 0, %64 ]
ret i32 %70
}