#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*/ dao_keyvalue_put_int(char *, int /*<<< orphan*/);
int /*<<< orphan*/ dao_keyvalue_put_text(char *, char *);
bool firmware_dao_init() {
  dao_keyvalue_put_int("firmware_version", 0);
  dao_keyvalue_put_text("firmware_release", "");
  dao_keyvalue_put_text("firmware_changes", "");
  dao_keyvalue_put_text("firmware_url", "");
  dao_keyvalue_put_int("firmware_newer", 0);
  dao_keyvalue_put_text("firmware_path", "");
  dao_keyvalue_put_text("firmware_sig", "");
  return true;
}


x86 assembly (clang, -O0):
<firmware_dao_init>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
xor    %esi,%esi
call   1030 <dao_keyvalue_put_int@plt>
lea    0xed8(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1040 <dao_keyvalue_put_text@plt>
lea    0xed6(%rip),%rdi
lea    0xece(%rip),%rsi
call   1040 <dao_keyvalue_put_text@plt>
lea    0xed4(%rip),%rdi
lea    0xebb(%rip),%rsi
call   1040 <dao_keyvalue_put_text@plt>
lea    0xece(%rip),%rdi
xor    %esi,%esi
call   1030 <dao_keyvalue_put_int@plt>
lea    0xecf(%rip),%rdi
lea    0xe9a(%rip),%rsi
call   1040 <dao_keyvalue_put_text@plt>
lea    0xeca(%rip),%rdi
lea    0xe87(%rip),%rsi
call   1040 <dao_keyvalue_put_text@plt>
mov    $0x1,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<firmware_dao_init>:
push   %rbx
lea    0xed8(%rip),%rdi
xor    %esi,%esi
call   1030 <dao_keyvalue_put_int@plt>
lea    0xedb(%rip),%rdi
lea    0xee4(%rip),%rbx
mov    %rbx,%rsi
call   1040 <dao_keyvalue_put_text@plt>
lea    0xed6(%rip),%rdi
mov    %rbx,%rsi
call   1040 <dao_keyvalue_put_text@plt>
lea    0xed8(%rip),%rdi
mov    %rbx,%rsi
call   1040 <dao_keyvalue_put_text@plt>
lea    0xed6(%rip),%rdi
xor    %esi,%esi
call   1030 <dao_keyvalue_put_int@plt>
lea    0xed7(%rip),%rdi
mov    %rbx,%rsi
call   1040 <dao_keyvalue_put_text@plt>
lea    0xed6(%rip),%rdi
mov    %rbx,%rsi
call   1040 <dao_keyvalue_put_text@plt>
mov    $0x1,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [17 x i8] c"firmware_version\00"
@.str.1 = [17 x i8] c"firmware_release\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [17 x i8] c"firmware_changes\00"
@.str.4 = [13 x i8] c"firmware_url\00"
@.str.5 = [15 x i8] c"firmware_newer\00"
@.str.6 = [14 x i8] c"firmware_path\00"
@.str.7 = [13 x i8] c"firmware_sig\00"
define i32 @firmware_dao_init() {
%1 = call i32 @dao_keyvalue_put_int(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @dao_keyvalue_put_int(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 0)
%6 = call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
ret i32 1
}

LLVM IR (-O2):
@.str = [17 x i8] c"firmware_version\00"
@.str.1 = [17 x i8] c"firmware_release\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [17 x i8] c"firmware_changes\00"
@.str.4 = [13 x i8] c"firmware_url\00"
@.str.5 = [15 x i8] c"firmware_newer\00"
@.str.6 = [14 x i8] c"firmware_path\00"
@.str.7 = [13 x i8] c"firmware_sig\00"
define i32 @firmware_dao_init() {
%1 = tail call i32 @dao_keyvalue_put_int(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @dao_keyvalue_put_int(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0), i32 0)
%6 = tail call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @dao_keyvalue_put_text(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
ret i32 1
}